Closed (fixed)
Project:
Search API
Version:
7.x-1.x-dev
Component:
Framework
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2015 at 16:58 UTC
Updated:
6 Jun 2015 at 12:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
darren ohComment #2
drunken monkeyThanks for spotting this problem, and already providing a patch!
There's one typo/mistake in there, though:
That's certainly not what you want to do there. You probably mean:
$form_state['values']['options'] += array('form' => array());Also, I guess validating empty configuration forms doesn't really make sense anyways? And also, it seems we don't check at all when editing the server – that should also be fixed, definitely!
So, here's a revised patch. Do you think that takes care of the problem, too?
In any case, thanks for the intiative here!
Comment #3
darren ohI think a developer who writes a validation method would expect it to run.
Comment #4
drunken monkeyHm, interesting viewpoint. I would disagree with that, but it's probably best to discuss this in a larger context to have a definite decision here. See #2445251: Plugin form validation/submission logic.
Comment #5
drunken monkeySince there's no discussion in the other issue, I'm just committing my version for now. If we reach a contrary conclusion in the other issue, we'll have to unify this stuff in all the other places anyways.
In any case, thanks again for spotting the issue and providing a patch!