]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
исправление
authorAlexander Smirnov <fredeom@mail.ru>
Fri, 26 Jul 2024 15:05:25 +0000 (18:05 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Fri, 26 Jul 2024 15:05:25 +0000 (18:05 +0300)
erp24/actions/motivation/IndexAction.php

index f394a6f56239a714d4a115b5439da5b668d4de56..6c5dab83b32ff85b516fff2a7f0b365507d4cdb5 100644 (file)
@@ -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('<br>', $data['errors']);
             } else {
                 return 'not ok';