Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nette 2.1, setPrompt() on select doesnt work if you do not choose any value #27

Open
matak opened this issue May 18, 2014 · 0 comments
Open
Labels

Comments

@matak
Copy link

matak commented May 18, 2014

addDynamic('_addItems', function (Container $item) use ($itemsIdWarehouse, $itemsAttribute) { $item->addSelect('idWarehouse', NULL, $itemsIdWarehouse) ->setDefaultValue(key($itemsIdWarehouse)); $item->addSelect('attribute', NULL, $itemsAttribute) ->setPrompt("-"); $item->addText('samples'); $item->addText('quantity'); $item->addText('date'); }, 1); ``` ?>

the result is error

The signal receiver component 'form' is not found.

because

Nette\InvalidArgumentException

Value '' is out of allowed range ['36', '37', '38', '39', '40'] in field 'attribute'.

...vendor\kdyby\forms-replicator\src\Kdyby\Replicator\Container.php:233 source Nette\Forms\Container-> setValues (arguments)

return parent::setValues($values, $erase);

@fprochazka fprochazka added the bug label Jun 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants