TIST-15: Add additional information for dashboard #11

Merged
steve_dekart merged 2 commits from TIST-15 into develop 2025-06-28 08:43:47 +02:00
Showing only changes of commit b6970ebef7 - Show all commits

View File

@ -139,7 +139,7 @@ abstract class AdminSingleController extends AdminBaseController
case 'image':
$file = $_FILES[$field['model_field']];
if (isset($file)) {
$path = upload_file($file, $this->model_сlass_name . '/', 'image');
$path = upload_file($file, $this->model_сlass_name::$table_name . '/', 'image');
if (!empty($path)) {
$field_value = $path;