When the hidden field widgets are used with text fields, is the field value also used in the format field, and not the correct format value.

For example:

<input type="hidden" name="field_title_long_text_dummy[und][0][format]" value="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras semper." />
<input type="hidden" name="field_title_long_text_dummy[und][0][value]" value="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras semper" />

Instead it should be:

<input type="hidden" name="field_title_long_text_dummy[und][0][format]" value="full_html" />
<input type="hidden" name="field_title_long_text_dummy[und][0][value]" value="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras semper" />

The attached patch tries to solve this issue.

CommentFileSizeAuthor
fixing_format_column_value.patch554 bytesbeltofte

Comments

colan’s picture

Status: Active » Reviewed & tested by the community

That patch certainly does the trick.

skwashd’s picture

Thanks. I've applied this patch. See cb696fc078f85c503e1ea8ebf0f415e74e384729.

skwashd’s picture

Status: Reviewed & tested by the community » Fixed

This is fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.