Closed (works as designed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
forms system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Sep 2013 at 13:01 UTC
Updated:
30 Oct 2015 at 15:43 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
joachim commentedHere's a patch.
Doesn't need a backport to D7.
Knock-on effect of this is a reroll of docs patch at #2094145: document Form API #process callback in form.api.php.
Comment #3
joachim commentedI have no idea why this would be failing.
Maybe it's a peculiarity of call_user_func_array() I'm not aware of?
Comment #4
joachim commented1: 2096731.drupal.form-process-pass-by-reference.patch queued for re-testing.
Comment #6
farfanfelipe commentedTorontoSprint: This issue should be close because the core code has changed and the patch/issue does not apply anymore.
New code for the form_builder function is as follow.
Comment #7
farfanfelipe commentedComment #8
smk-ka commentedThis had actually never been fixed, let's try it again.
Comment #9
smk-ka commented#1827524: #process functions get an argument passed by reference when they need to return that same parameter has been marked as duplicate.
Comment #11
smk-ka commentedThis change seems to break some form elements, as you'll get errors like
Notice: Undefined index: #value in template_preprocess_form_element(). So it seems like it is required by some obscure code depending on it. 'Works as designed' probably describes the situation best.