Allow smart blocks with no criteria
This commit is contained in:
parent
f05157c376
commit
01b3ae1bf0
4 changed files with 55 additions and 35 deletions
|
@ -370,6 +370,10 @@ class Application_Form_SmartBlockCriteria extends Zend_Form_SubForm
|
|||
// add elelments that needs to be added
|
||||
// set multioption for modifier according to criteria_field
|
||||
$modRowMap = array();
|
||||
if (!isset($data['criteria'])) {
|
||||
return $data;
|
||||
}
|
||||
|
||||
foreach ($data['criteria'] as $critKey=>$d) {
|
||||
$count = 1;
|
||||
foreach ($d as $modKey=>$modInfo) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue