|
@@ -150,9 +150,10 @@ Action::register('dashboard_widget_refresh',function(&$response){
|
|
}
|
|
}
|
|
|
|
|
|
foreach(DashboardWidget::model() as $model){
|
|
foreach(DashboardWidget::model() as $model){
|
|
- if(!isset($model->content) || is_string($model->content) || !isset($widgets[$model->model]) ) continue;
|
|
|
|
|
|
+ if(!isset($model->content) || !$model->live || is_string($model->content) || !isset($widgets[$model->model]) ) continue;
|
|
|
|
|
|
foreach($widgets[$model->model] as $currentWidget){
|
|
foreach($widgets[$model->model] as $currentWidget){
|
|
|
|
+ $oldWidget = clone $currentWidget;
|
|
$model->refresh($currentWidget);
|
|
$model->refresh($currentWidget);
|
|
$response['rows'][] = $currentWidget;
|
|
$response['rows'][] = $currentWidget;
|
|
}
|
|
}
|