Order: Fixed not being able to save product whithout termination even if
product doesnt need it
This commit is contained in:
@@ -476,7 +476,8 @@ class OrderController extends mfBaseController {
|
||||
|
||||
|
||||
$require_term = false;
|
||||
if(array_key_exists(TT_ATTRIB_TERMINATION_REQUIRED_NAME, $prod->attributes) && $prod->attributes[TT_ATTRIB_TERMINATION_REQUIRED_NAME] == 1) {
|
||||
if(array_key_exists(TT_ATTRIB_TERMINATION_REQUIRED_NAME, $prod->attributes) && $prod->attributes[TT_ATTRIB_TERMINATION_REQUIRED_NAME]->value == 1) {
|
||||
//var_dump($prod->attributes);
|
||||
$require_term = true;
|
||||
if(!$p['termination_id']) {
|
||||
$this->layout()->setFlash("Ein oder mehrere Produkte erfordern Anschluss.", "warn");
|
||||
|
||||
Reference in New Issue
Block a user