Rml workorder/v6
This commit is contained in:
@@ -98,7 +98,7 @@ class WorkorderAdminController extends WorkorderBaseController
|
||||
{
|
||||
if (empty($this->postData['workorderIds']) || empty($this->postData['companyId'])) self::sendError("Erforderliche Felder fehlen.");
|
||||
|
||||
$deadline = strtotime($this->postData['deadlineDate'] ?? '+6 weeks');
|
||||
$deadline = $this->postData['deadlineDate'] ?? strtotime('+6 weeks');
|
||||
$count = 0;
|
||||
foreach ($this->postData['workorderIds'] as $workorderId) {
|
||||
if ($this->assignSingleWorkorder($workorderId, $this->postData['companyId'], $deadline, $this->user->id)) $count++;
|
||||
@@ -293,4 +293,4 @@ class WorkorderAdminController extends WorkorderBaseController
|
||||
}
|
||||
}
|
||||
//endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user