]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
fix code problems for merge request feature_fomichev_erp-86_create_reference_table_for_budget_items_motivation_model
authorvladfo <fvv2011@gmail.com>
Mon, 22 Jul 2024 15:35:59 +0000 (18:35 +0300)
committervladfo <fvv2011@gmail.com>
Mon, 22 Jul 2024 15:35:59 +0000 (18:35 +0300)
erp24/actions/motivation/BaseMotivationAction.php

index 6a58342a5e8b0d0f3bd87f2e7bcd81ed5adf3884..3526ea7f9347f76529ac63aef8ae1427c4444477 100644 (file)
@@ -10,7 +10,7 @@ abstract class BaseMotivationAction extends Action
 {
     protected function findModel($id)
     {
-        if (($model = MotivationCostsItem::findOne($id)) !== null) {
+        if ($model = MotivationCostsItem::findOne($id)) {
             return $model;
         }
         throw new NotFoundHttpException('The requested page does not exist.');