From cd73fe86416c57f6db68794a81881d5f1f46adee Mon Sep 17 00:00:00 2001 From: Mike Shiyan Date: Sun, 31 Jul 2016 02:05:04 +0300 Subject: [PATCH] Issue #2755707 by ogggg, pingwin4eg: WSOD: array_slice($element['#array_parents'], 0, -1); is null --- filefield_sources.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filefield_sources.module b/filefield_sources.module index ba2717f..5562a12 100644 --- a/filefield_sources.module +++ b/filefield_sources.module @@ -182,9 +182,9 @@ function filefield_sources_field_process(&$element, FormStateInterface $form_sta $callback = array($source['class'], 'process'); if (is_callable($callback)) { $element = call_user_func_array($callback, array( - $element, + &$element, $form_state, - $complete_form, + &$complete_form, )); } } -- 1.9.5.msysgit.0