3
0
Fork 0

обновление параметров

This commit is contained in:
Александр Рыбкин 2021-08-03 12:33:40 +03:00
parent 99dd41be05
commit 39e016b6b2
1 changed files with 5 additions and 1 deletions

View File

@ -66,7 +66,11 @@ class MoleController extends Controller
$control = new $class($task->controller, 'product');
if (method_exists($control, $action))
{
$control->{$action}(unserialize($task->params));
$params = $control->{$action}(unserialize($task->params));
if(!empty($params))
{
$task->params = serialize($params);
}
$task->isReady = 1;
}
}