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

Ignore 'not empty' validation when updating a record #32

Closed
Ali1 opened this issue Mar 28, 2014 · 2 comments
Closed

Ignore 'not empty' validation when updating a record #32

Ali1 opened this issue Mar 28, 2014 · 2 comments

Comments

@Ali1
Copy link
Contributor

Ali1 commented Mar 28, 2014

notEmpty is useful on the user side so that when a field is shown to the user, it must be filled.

However on the admin panel, when you are updating a record, there is no way to select which fields are shown and so the admin who may be intending to modify a single field has to then populate all of the notEmpty fields too before s/he can save.

I think we should be more relaxed with validation during record update.

@milesj
Copy link
Owner

milesj commented Mar 28, 2014

Model validation is handled outside of the admin system though, so this is nothing the plugin can handle.

You can also hide fields in the form. https://github.com/milesj/admin/blob/master/Config/bootstrap.php#L70

@Ali1
Copy link
Contributor Author

Ali1 commented Mar 28, 2014

Cheers that hide feature is pretty good! I'll look into artificially grabbing the validation, manipulating it and resetting it if I need anything further. Bye for now mate

@Ali1 Ali1 closed this as completed Mar 28, 2014
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

2 participants