Closed (duplicate)
Project:
Views Modes
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2012 at 15:12 UTC
Updated:
16 Jul 2013 at 17:46 UTC
When editing a view with a view mode, this warning is produced:
Strict warning: Declaration of views_modes_plugin_display_mode::options_submit() should be compatible with views_plugin::options_submit(&$form, &$form_state) in _registry_check_code() (line 3062 of /Applications/MAMP/htdocs/max/includes/bootstrap.inc).
Need to pass $form by reference in the function options_submit() in file views_modes_plugin_display_mode.inc :
function options_submit($form, &$form_state) {
parent::options_submit($form, $form_state);
Should read:
function options_submit(&$form, &$form_state) {
parent::options_submit($form, $form_state);
Attached is a patch.
| Comment | File | Size | Author |
|---|---|---|---|
| views_modes-options_submit-declaration-pass-by-ref.patch | 539 bytes | lookatthosemoose |
Comments
Comment #1
matglas86 commentedFix works for me.
Comment #2
heddn+1 on op. RTBC again.
Comment #3
batje commentedcommitted patch from #1790480: Configuration Issue (sorry, you were first, i know)