Hi there, I love this module!! But I found a bug and it's killin me :(

Under Administer › Content management › Content types: While on the configuration page for one of my CCK-created content types, there is a setting at the bottom:

Display attachments inline automatically:
Disabled
Only in teaser
Only in body
In teaser and body

I desperately need to set "Only in Body" but every time I do and submit, it defaults to "Disabled" again.

CommentFileSizeAuthor
#1 inline.module_1.patch1.29 KBsun

Comments

sun’s picture

Component: User interface » Code
Priority: Critical » Normal
Status: Active » Needs review
StatusFileSize
new1.29 KB

Please test the attached patch.

sun’s picture

Assigned: Unassigned » sun
Status: Needs review » Fixed

Committed to HEAD and DRUPAL-5.

Anonymous’s picture

Status: Fixed » Closed (fixed)
dgh’s picture

hello i have exactly the same problem but my file is already in this form :

function inline_form_alter($form, $form_state, $form_id) {
if ($form_id == 'node_type_form') {
$node_type = $form['orig_type']['#value'];
$form['workflow']['upload_inline'] = array(
'#type' => 'radios',
'#title' => t('Display attachments inline automatically'),
'#default_value' => variable_get('upload_inline_'. $node_type, 0),
'#options' => array(
0 => t('Disabled'),
1 => t('Only in teaser view'),
2 => t('Only in body view'),
3 => t('In teaser and body view')),
'#description' => t('Choose whether uploaded images should be shown inline automatically. Make sure you set the dimensions at !settings_url', array('!settings_url' => l(t('inline settings'), 'admin/settings/inline'))),

);
}
}

i cannot change this field :

Display attachments inline automatically:
Disabled
Only in teaser
Only in body
In teaser and body

i searched during hours but didn't found anything that could help me, this is the only post and i cannot do anything with :(

dgh’s picture

Version: 5.x-1.x-dev » 6.x-1.0