contributte / forms-multiplier

:repeat: Form multiplier & replicator for Nette Framework

Home Page:https://contributte.org/packages/contributte/forms-multiplier.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nested multiplier bugs

LiborSitek opened this issue · comments

Hi, I use nested multiplier in another multiplier, where both multipliers (inner and outer) have been set the copy number to 1 (default) and I found 2 bugs:

  • The nested (inner) multiplier has container containing inputs with some defaultValues set by BaseControl::setDefaultValue(). However, when I add a new copy by multiplier submit create button, the inputs of the new copy does not have its default values filled (only the first default copy does have)

  • When I add a new copy of the outer multiplier by its submit create button, the inner multiplier of the new outer multiplier copy does not have created its default copy (like the copy number being ignored), however the first default copy of the outer multiplier does have its outer multiplier with its default copy created

I believe that pull request #59 fixes both of the problems.

I believe that pull request #59 fixes both of the problems.

Correct