Send a new instance of the model_class with the getModel function so the __constructor is run if one exists (allowing variable $dashboard_columns data)

This commit is contained in:
Kevin MacMartin 2019-07-17 00:51:25 -04:00
parent c03d2fc659
commit 7e629af810

View file

@ -79,7 +79,7 @@ class Dashboard
return null; return null;
} }
return $model_class; return new $model_class;
} else { } else {
return null; return null;
} }