disabled task description and added this lang object to convert string to langguage by

This commit is contained in:
Amit sharma
2026-05-20 16:17:50 +05:30
parent 75ba1c0d15
commit 3f848d66fd
2 changed files with 2 additions and 1 deletions

View File

@@ -220,6 +220,7 @@ class AdminCronTaskManagerController extends ModuleAdminController
'label' => $this->l('Description'),
'name' => 'description',
'required' => true,
'disabled' => true,
'col' => 7,
'hint' => $this->l('e.g. Sends the daily booking summary report'),
'desc' => $this->l('A short human-readable description of what this task does.'),

View File

@@ -230,7 +230,7 @@ class QloCronTaskManager extends Module
$cronTask = new QctmCronTask();
$cronTask->id_module = $idModule;
$cronTask->task_name = $task['name'];
$cronTask->description = $task['description'];
$cronTask->description = $this->l($task['description']);
$cronTask->cron_expression = $task['cron'];
$cronTask->callback = $task['callback'];
$cronTask->active = 1;