From 8d000c63220f0a2731c4f7b0734a9db79ea08c03 Mon Sep 17 00:00:00 2001 From: Mark Unwin Date: Wed, 18 Apr 2018 08:39:59 +1000 Subject: [PATCH] Fix bug (typo) when creating a dashboard so we do create and save the widget list. --- code_igniter/application/models/m_collection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code_igniter/application/models/m_collection.php b/code_igniter/application/models/m_collection.php index 7ede9c144..aaa7e7fde 100644 --- a/code_igniter/application/models/m_collection.php +++ b/code_igniter/application/models/m_collection.php @@ -461,7 +461,7 @@ public function create($data = null, $collection = '') } $my_options = new stdClass(); $my_options->layout = '3x2'; - if (!empty($my_options->widget_count)) { + if (!empty($options->widget_count)) { $my_options->widget_count = intval($options->widget_count); } else { $my_options->widget_count = 0;