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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user