Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

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

Open
samsonasik opened this issue Dec 22, 2016 · 2 comments
Open

Comments

@samsonasik
Copy link

samsonasik commented Dec 22, 2016

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.

@michalbundyra
Copy link
Member

@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)...

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas-api-tools/api-tools-admin-ui; a new issue has been opened at laminas-api-tools/api-tools-admin-ui#5.

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

No branches or pull requests

3 participants