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

haystack in Zend\Validator\Inarray removed after remove other field #5

Open
weierophinney opened this issue Dec 31, 2019 · 1 comment

Comments

@weierophinney
Copy link
Contributor

steps to reproduce:

  • define fields: foo and bar
  • bar field has Zend\Validator\Inarray, as we can't set haystack via GUI, then set manually at module.config.php
  • remove foo field via GUI

actual result: "haystack" option in bar validator definitions removed.
expected result: "haystack" option in bar validator definitions should not be removed.


Originally posted by @samsonasik at zfcampus/zf-apigility-admin-ui#138

@weierophinney
Copy link
Contributor Author

@samsonasik I was looking on it, and it seems to be a bit more complex issue. It needs changes also in zf-apigility-admin. Basically we need add option haystack in validator_metadata config:
https://github.com/zfcampus/zf-apigility-admin/blob/master/config/module.config.php#L1400-L1403
but then also in admin-ui we need to add support for array option values (now it works only with bool/int/string)...


Originally posted by @michalbundyra at zfcampus/zf-apigility-admin-ui#138 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant