When using a cck multiples field, if you "add more values", the better formats input format is not applied to the field added with AHAH. This is due to the fact that better_formats_text_process checks for !isset($format). When adding new, both $element['#value'][$filter_key] and $element['#default_value'][$filter_key] are never set, which leads $format left as an empty string rather than null. Not sure why, but I can't see a condition where this wouldn't be so.

Patch incoming ...

CommentFileSizeAuthor
#1 better_formats-672766.patch550 bytesfearlsgroove

Comments

fearlsgroove’s picture

StatusFileSize
new550 bytes
fearlsgroove’s picture

Status: Active » Needs review
dragonwize’s picture

Status: Needs review » Fixed

Committed. Thanks.

Status: Fixed » Closed (fixed)

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

dellis’s picture

Version: 6.x-1.1 » 7.x-1.x-dev
Status: Closed (fixed) » Active

I am seeing this bug on the 7x-dev release--"hijacking" this closed thread in the hopes that it is a similar fix. Thanks!

dragonwize’s picture

Version: 7.x-1.x-dev » 6.x-1.1
Status: Active » Closed (fixed)

7.x-dev release does not use defaults and does not have the vast majority of features ported yet.