Index: trunk/extensions/SemanticForms/libs/SemanticForms.js |
— | — | @@ -612,8 +612,10 @@ |
613 | 613 | // the [num] index in the element names with an actual unique index |
614 | 614 | new_div.find("input, select, textarea").each( |
615 | 615 | function() { |
| 616 | + // Add in a 'b' at the end of the name to reduce the |
| 617 | + // chance of name collision with another field |
616 | 618 | if (this.name) |
617 | | - this.name = this.name.replace(/\[num\]/g, '[' + num_elements + ']'); |
| 619 | + this.name = this.name.replace(/\[num\]/g, '[' + num_elements + 'b]'); |
618 | 620 | |
619 | 621 | if (this.id) { |
620 | 622 | |