From a42b355b020dcfc3f2621799d2b8dfe46860a4bd Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Fri, 26 Jul 2024 18:05:25 +0300 Subject: [PATCH] =?utf8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/actions/motivation/IndexAction.php | 5 ----- 1 file changed, 5 deletions(-) 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'; -- 2.39.5