Commit ba9a25ba authored by dragonwize's avatar dragonwize
Browse files

Fixed #672766 by fearlsgroove: Apply default to CCK multiple fields on AHAH.

parent e2901718
......@@ -310,7 +310,7 @@ function better_formats_text_process($element, $edit, $form_state, $form) {
$default = better_formats_get_default_format('node', $form['type']['#value']);
// Overwrite format default if new node.
if (!isset($form_state['values']['nid']) || !isset($format)) {
if (!isset($form_state['values']['nid']) || empty($format)) {
$format = $default;
}
$format = filter_resolve_format($format);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment