From ea267b022fee95b3609561970ca8744928e42035 Mon Sep 17 00:00:00 2001 From: cgernert Date: Thu, 23 Nov 2017 15:01:00 +0100 Subject: [PATCH] Check if model for DetailView is null The DetailView component returns an error if the 'model' parameter is null, so a check was introduced. --- crud/default/views/view.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crud/default/views/view.php b/crud/default/views/view.php index 0cd5886..f314889 100644 --- a/crud/default/views/view.php +++ b/crud/default/views/view.php @@ -132,6 +132,7 @@ +$name)): ?>\n"?>

' '. Html::encode($this->title) ?>

@@ -161,6 +162,7 @@ 'attributes' => $gridColumn ]); ?> + \n"?>