From: Aleksey Filippov Date: Mon, 29 Sep 2025 09:51:11 +0000 (+0300) Subject: ERP-469 Добавил очистку колонки name X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=ecd35a549505c562609cf629db4c926ac75136d7;p=erp24_rep%2Fyii-erp24%2F.git ERP-469 Добавил очистку колонки name --- diff --git a/erp24/controllers/UsersMessageManagementController.php b/erp24/controllers/UsersMessageManagementController.php index 550ced6c..7b02bcf3 100644 --- a/erp24/controllers/UsersMessageManagementController.php +++ b/erp24/controllers/UsersMessageManagementController.php @@ -272,6 +272,9 @@ class UsersMessageManagementController extends Controller foreach ($data as $rowIndex => $row) { foreach ($keys as $colIndex => $key) { $value = $row[$key] ?? ''; + if (in_array($key, ['name'])) { + $value = preg_replace('/[^a-zA-Zа-яА-Я0-9 ]/ui', '',$value); + } if (in_array($key, ['last_date']) && $value) { $value = date('Y-m-d', strtotime($value)); }