Fixed saving termination on new
This commit is contained in:
@@ -14,7 +14,12 @@ class Order extends mfBaseModel {
|
||||
return 0;
|
||||
}
|
||||
|
||||
$p = end($this->getProperty("products"));
|
||||
$products = $this->getProperty("products");
|
||||
if(!is_array($products) || !count($products)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
$p = end($products);
|
||||
return ++$p->pos;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@ class OrderModel {
|
||||
public $billingaddress_id;
|
||||
public $order_date;
|
||||
public $finish_date;
|
||||
public $finish_after;
|
||||
public $finish_after_comment;
|
||||
public $billing_text;
|
||||
public $bank_account_bank;
|
||||
public $bank_account_owner;
|
||||
|
||||
Reference in New Issue
Block a user