Fixed form validation and display after errors and when removing rows

This commit is contained in:
Robbt 2018-01-08 21:48:31 -05:00
parent 5e7a5b3e1d
commit 144f1b5561
3 changed files with 74 additions and 7 deletions

View file

@ -67,7 +67,7 @@
<dd id='sp_criteria-element' class='criteria-element'>
<a class='btn btn-small btn-new' id='criteria_add'><i class='icon-white icon-plus'></i><?php echo(_("New Criteria")); ?></a>
<?php for ($i = 0; $i < $this->criteriasLength; $i++) {
<?php for ($i = 0; $i < $this->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