diff --git a/lib/zin/wg/dashboard/v1.php b/lib/zin/wg/dashboard/v1.php index fc49fbc670..1d6fa3b33b 100644 --- a/lib/zin/wg/dashboard/v1.php +++ b/lib/zin/wg/dashboard/v1.php @@ -46,7 +46,7 @@ class dashboard extends wg protected function created() { - $this->setDefaultProps(['id' => static::$dashboardID ? static::$dashboardID : 'dashboard']); + $this->setDefaultProps(array('id' => static::$dashboardID ? static::$dashboardID : 'dashboard')); static::$dashboardID++; } @@ -55,6 +55,6 @@ class dashboard extends wg */ protected function build(): wg { - return zui::dashboard(inherit($this)); + return zui::dashboard(set($this->props->skip(array('id'))), set('_id', $this->prop('id'))); } }