Commit 126dd457 authored by Dries's avatar Dries

Issue #1933290 by dawehner, olli: Saving anything on handlers isn't stored properly.

parent 83b567c9
......@@ -237,7 +237,10 @@ public function standardSubmit($form, &$form_state) {
$submit_handler = array($form_state['build_info']['callback_object'], 'submitForm');
if (is_callable($submit_handler)) {
call_user_func($submit_handler, $form, $form_state);
// The submit handler might be a function or a method on the
// callback_object. Additional note that we have to pass the parameters
// by reference, as php 5.4 requires us to do that.
call_user_func_array($submit_handler, array(&$form, &$form_state));
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment