Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
theme system
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Sep 2007 at 20:42 UTC
Updated:
1 Nov 2007 at 13:42 UTC
Jump to comment: Most recent file
Everytime i'm checking "Search box" in admin/build/themes/settings/garland and press save, the setting is lost after the save setting. The search box isn't displayed.
I'm using FX2 and D6-dev (29.09.2007)
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | theme-settings-form1.patch | 997 bytes | floretan |
| #10 | theme-settings-form0.patch | 862 bytes | floretan |
Comments
Comment #1
hass commentedI found the source. i haven't yet activated the search module. Aside it's not good to simply uncheck a box and do not tell the user about the problem. So we should add an drupal_set_message(, 'error') here with explanation.
theme.inc (Line 801 ff)
Comment #2
hass commentedOr remove the "Search box" checkbox from the Theme setting until the search module becomes active.
Comment #3
dvessel commentedThis should be fixed. I'm not sure of the cleanest way though. Doing a module_exists() sounds reasonable.
Comment #4
hass commentedI cannot see any patch committed in the last 5 days that have fixed this... which commit have fixed this?
Comment #5
dvessel commentedI said it *should* be fixed.
Comment #6
hass commentedNo, it isn't - or how should this looks like with the patch?
Comment #7
jonfhancock commentedHe's saying that it needs to be fixed.
Comment #8
floretan commentedThere was a mismatching key that caused conditionally enabled fields to be always enabled.
This patch actually changes 11 characters...
Comment #9
hass commentedWhat patch are you talking about? :-)
Comment #10
floretan commentedoops... this one.
Comment #11
gábor hojtsyThis looks good, but let's update the comment too. We are not only disabling the search box here, but also other features (user picture on nodes and comments are also checked above). So let's use a comment appropriate:
// Disable form items for features not supported in this configuration.
Or something along these lines.
Comment #12
floretan commentedThank you for the suggestion. Here's a revised version of the patch.
The comment has been changed and moved down one line in order to match what the code really does.
Comment #13
gábor hojtsyLooks good, thanks, committed.
Comment #14
(not verified) commented