Merge branch 'fix-uncombinable' into develop
This commit is contained in:
commit
faff854953
@ -2029,7 +2029,14 @@ class Sale {
|
||||
$current_sale = $sale;
|
||||
$adding_sale = $added_sale;
|
||||
} else {
|
||||
// We can test with the attribute
|
||||
// Compatibility with object - We can test with the attribute
|
||||
|
||||
// Same sale
|
||||
if((int)$sale->id == (int)$added_sale->id){
|
||||
return true;
|
||||
}
|
||||
|
||||
// Uncombinable
|
||||
if((int)$sale->uncombinable == 1 || (int)$added_sale->uncombinable == 1) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user