amic 2 týždňov pred
rodič
commit
07d9e58a56

+ 5 - 0
modules/manager/controllers/NewsController.php

@@ -61,6 +61,11 @@ class NewsController extends BaseController
     {
 		$model = News::findOne($id);
 		if($model) $model->Active($id);
+		$s = ($model->active == 'Y')?'s':'h';
+		$profile = Yii::$app->user->identity->profile;
+		$model->editors = $model->editors.(($model->editors)?',':'').$s.':'.$profile->name;
+		$model->save(false);
+
         return $this->redirect(array('list', 'id'=>$id));
     }