Closed (fixed)
Project:
Site map
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jun 2010 at 13:52 UTC
Updated:
16 Sep 2010 at 18:20 UTC
Jump to comment: Most recent file
Currently, the Input Format field is implemented as:
$form['site_map_message_format'] = filter_form(variable_get('site_map_message_format', FILTER_FORMAT_DEFAULT));
However this stores the form element under the default name, "format". When system_settings_form handles the submission it stores the selection in a variable called format, not site_map_message_format.
The solution is to implement filter_format with the parents array site to the form element name... Like this:
$form['site_map_message_format'] = filter_form(variable_get('site_map_message_format', FILTER_FORMAT_DEFAULT), NULL, array('site_map_message_format'));
I can confirm this fix works for the site I'm working on.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | site_map.input-format-fix.patch | 891 bytes | nicholasthompson |
Comments
Comment #1
nicholasthompsonPatch Attached...
Comment #2
TheUnseen commentedThis is still an issue with 6.x-2.1 which I am using.
Could this be addressed, please?
I just needed the Full HTML option to be used so I inserted into drupal_variable manually as a workaround:
Comment #3
frjo commentedThanks for reminding me of this!
Committed to 6--2-dev.