- criteriasLength; $i++) {?>
+ criteriasLength; $i++) {
+ // modRowMap holds the number of modifier rows for each criteria element
+ // i.e. if we have 'Album contains 1' and 'Album contains 2' the modRowMap
+ // for Album is 2
+ ?>
modRowMap[$i]; $j++) {
+ // determine if logic label should be 'and' or 'or'
if ($this->modRowMap[$i] > 1 && $j != $this->modRowMap[$i]-1) $logicLabel = 'or';
else $logicLabel = 'and';
+
$disabled = $this->element->getElement("sp_criteria_field_".$i."_".$j)->getAttrib('disabled') == 'disabled'?true:false;
// determine if the next row is disabled and only display the logic label if it isn't
if ($j == $this->modRowMap[$i]-1 && $i < 25) {
$n = $i+1;
$nextIndex = $n."_0";
- } elseif ($j+1 < $this->modRowMap[$i]-1) {
+ } elseif ($j+1 <= $this->modRowMap[$i]-1) {
$n = $j+1;
$nextIndex = $i."_".$n;
diff --git a/airtime_mvc/application/views/scripts/form/support-setting.phtml b/airtime_mvc/application/views/scripts/form/support-setting.phtml
index f35a6eab1..ad15671f6 100644
--- a/airtime_mvc/application/views/scripts/form/support-setting.phtml
+++ b/airtime_mvc/application/views/scripts/form/support-setting.phtml
@@ -1,5 +1,4 @@