From: Alexander Smirnov Date: Fri, 26 Jul 2024 15:05:25 +0000 (+0300) Subject: исправление X-Git-Tag: 1.4~45^2~12 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=a42b355b020dcfc3f2621799d2b8dfe46860a4bd;p=erp24_rep%2Fyii-erp24%2F.git исправление --- diff --git a/erp24/actions/motivation/IndexAction.php b/erp24/actions/motivation/IndexAction.php index f394a6f5..6c5dab83 100644 --- a/erp24/actions/motivation/IndexAction.php +++ b/erp24/actions/motivation/IndexAction.php @@ -25,11 +25,6 @@ class IndexAction extends Action $data = MotivationService::uploadTemplatePlan($path1); - if (empty(array_filter($data['errors'], function ($x) { return !empty($x); }))) { - $path2 = Yii::getAlias('@uploads') . '/template_plan.xlsx'; - copy($path1, $path2); - } - return implode('
', $data['errors']); } else { return 'not ok';