Kdyby / FormsReplicator

Other
30 stars 57 forks source link

"Container with name '$name' already exists" after removeComponent #18

Open matej21 opened 11 years ago

matej21 commented 11 years ago

Steps do reproduce the bug:

$container = $form->addDynamic(...);
$component = $container->createOne();
$container->removeComponent($component);
$container->createOne();
fprochazka commented 11 years ago

There is method exactly for this, that also removes containers from the groups.

matej21 commented 11 years ago

Unfortunately, it doesn't work either :( It doesn't remove given container from Kdyby\Replicator\Container::$created

fprochazka commented 11 years ago

Oh, I see.