Project

General

Profile

Bug #1934 » bad_add_another.patch

Patch for hte bug, to be tested - François ARMAND, 2011-10-13 17:37

View differences:

rudder-web/src/main/scala/com/normation/rudder/web/services/Section2FieldService.scala
val sectionFields = for (sectionMap <- seqOfSectionMap) yield createSingleSectionField(sectionMap)
if (section.isMultivalued)
MultivaluedSectionField(sectionFields, () => createSectionField(section))
else
if (section.isMultivalued) {
MultivaluedSectionField(sectionFields, () => createSingleSectionField(createDefaultMap(section)))
} else
sectionFields.head
}
(2-2/2)