Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
system.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 May 2007 at 10:43 UTC
Updated:
6 Jun 2007 at 08:16 UTC
Jump to comment: Most recent file
Comments
Comment #1
hass commentedthis is working on my box. i'm using the build i've downloaded some minutes ago.
Comment #2
hass commentedignore my last posting, i tested on 5.x-dev... :-(. Under 6.x-dev i'm able to repro this bug, too.
Comment #3
hass commentedsave on a theme specific settings page additional gives me this error:
Comment #4
hass commentedcheck out http://drupal.org/node/138706... maybe the cause?
Comment #5
riccardoR commentedI think hass is right.
The theme_seetings variable is no longer stored in the variable database table as a serialized array (like in Drupal 5), but as a set of independent values :
This make me think of an error in the settings form submit handling because of the different logic in FormAPI3.
I have tried to set the appropriate form submit handler in system_theme_settings() getting inspiration from system_admin_theme_settings() that is working. This change has restored the correct behaviour :
Patch against HEAD attached.
I am not sure if this is the orthodox solution, but at least it fixes the issue: now I am able to save any theme settings.
BTW, I cannot access the theme specific pages, with or without this patch.
Thanks,
Riccardo
Comment #6
johnalbinThe FAPI3 patch (#138706) is indeed the issue.
system_settings_form()is modified to include these lines:Which means
system_settings_form_submit()is called instead ofsystem_theme_settings_submit().This patch fixes that issue.
BONUS: because of the additions to
system_settings_form(), the Administration Theme and Performance forms were showing “The configuration options have been saved.” twice when submitted. The patch fixes that as well.Comment #7
johnalbinComment #8
dries commentedJohn's patch looks good. Feel free to RTBC this after you confirmed that it fixes the problem.
Good catch.
Comment #9
johnalbinI’ve verified the patch fixes all 3 forms.
Comment #10
dries commentedCommitted to CVS. Thanks, John.
Comment #11
(not verified) commented