Fixed saving install_date for orders without terminations
This commit is contained in:
@@ -758,7 +758,7 @@ class OrderController extends mfBaseController {
|
||||
$date = null;
|
||||
}
|
||||
|
||||
if($date && !$order->install_date && is_array($order->terminations)) {
|
||||
if($date && !$order->install_date && is_array($order->terminations) && count($order->terminations)) {
|
||||
$term = $order->terminations[0];
|
||||
if(!$term->getWorkflowvalue("pop_id")) {
|
||||
$this->returnJson(["status" => "error", "msg" => "Kein POP im Leitungsbau !", "order" => ['id' => $order_id]]);
|
||||
|
||||
Reference in New Issue
Block a user