akaunting 3.0 (the last dance)
This commit is contained in:
@ -95,7 +95,13 @@ class CreateDashboard extends Job implements HasOwner, HasSource, ShouldCreate
|
||||
$sort = 1;
|
||||
|
||||
if ($this->request->has('default_widgets')) {
|
||||
$widgets = Widgets::getClasses($this->request->get('default_widgets'), false);
|
||||
$default_widgets = $this->request->get('default_widgets');
|
||||
|
||||
if (! is_array($default_widgets) && ($default_widgets == 'core')) {
|
||||
Widgets::optimizeCoreWidgets();
|
||||
}
|
||||
|
||||
$widgets = Widgets::getClasses($default_widgets, false);
|
||||
|
||||
$this->createWidgets($widgets, $sort);
|
||||
}
|
||||
|
Reference in New Issue
Block a user