Closed (fixed)
Project:
Flexinode
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2006 at 00:17 UTC
Updated:
28 Apr 2006 at 12:45 UTC
Jump to comment: Most recent file
pipeline delimited options are not seen(in the textarea) while editing a previously added dropdown menu item.
flexinode_field_select_config function in field_select.inc
function flexinode_field_select_config($field, $edit) {
return array('options' => array(
'#type' => 'textarea',
'#default_value' => is_array($edit['options']) ? implode('|', $edit['options']) : '',
'#description' => t('Please enter a pipe delimited list of options with no cairrage returns. For example: "Red|Blue|Green" or "Small|Medium|Large"'),
));
}
the second parameter $edit is useless and $edit['options'] should be replaced with $field->options.
function flexinode_field_select_config($field) {
return array('options' => array(
'#type' => 'textarea',
'#default_value' => is_array($field->options) ? implode('|', $field->options) : '',
'#description' => t('Please enter a pipe delimited list of options with no cairrage returns. For example: "Red|Blue|Green" or "Small|Medium|Large"'),
));
}
sorry, i dont know how to make a patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | field_select.inc_0.patch | 1.04 KB | karens |
Comments
Comment #1
karens commentedHere is a patch for so you can see your options when you go back to edit a select field. It also fixes a typo in the spelling of the word "carriage".
Comment #2
karens commentedForgot to change the status.
Comment #3
Bèr Kessels commentedCommitted. thanks
Comment #4
(not verified) commented