starting on startForm to maintain criteria grouping during reload
This commit is contained in:
parent
8095f6e627
commit
d03aa5bd86
|
@ -270,11 +270,24 @@ class Application_Form_SmartBlockCriteria extends Zend_Form_SubForm
|
||||||
$criteriaType = "";
|
$criteriaType = "";
|
||||||
|
|
||||||
// if there is a criteria found then count the number of rows for this specific criteria ie > 1 track title
|
// if there is a criteria found then count the number of rows for this specific criteria ie > 1 track title
|
||||||
|
// need to refactor this to maintain separation based upon criteria grouping
|
||||||
if (isset($criteriaKeys[$i])) {
|
if (isset($criteriaKeys[$i])) {
|
||||||
$critCount = count($storedCrit["crit"][$criteriaKeys[$i]]);
|
$critCount = count($storedCrit["crit"][$criteriaKeys[$i]]);
|
||||||
} else {
|
} else {
|
||||||
$critCount = 1;
|
$critCount = 1;
|
||||||
}
|
}
|
||||||
|
// need to iterate through here and basically add an element for each new criteria group
|
||||||
|
// and also iterate through for every item in a specific criteria group
|
||||||
|
if ($critCount > 1) {
|
||||||
|
$groupCount = 0;
|
||||||
|
$groupVal = null;
|
||||||
|
$prevGroupVal = null;
|
||||||
|
foreach ($storedCrit["crit"][$criteriaKeys[$i]] as $item) {
|
||||||
|
$groupVal = $item["criteria_group"];
|
||||||
|
Logging::info($groupVal);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// store the number of items with the same key in the ModRowMap
|
// store the number of items with the same key in the ModRowMap
|
||||||
$modRowMap[$i] = $critCount;
|
$modRowMap[$i] = $critCount;
|
||||||
|
|
Loading…
Reference in New Issue