We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80852dc commit b7e1baaCopy full SHA for b7e1baa
src/Bridge/Interaction/CollectionInteractor.php
@@ -54,8 +54,10 @@ public function interactWith(
54
throw new CanNotInteractWithForm('Expected a "collection" form');
55
}
56
57
- if (!$form->getConfig()->getOption('allow_add')) {
58
- throw new FormNotReadyForInteraction('The "collection" form should have the option "allow_add"');
+ if (!$form->getConfig()->getOption('allow_add') && empty($form->getData())) {
+ throw new FormNotReadyForInteraction(
59
+ 'The "collection" form should have the option "allow_add" or have existing entries'
60
+ );
61
62
63
$this->printHeader($form, $output);
0 commit comments