diff --git a/includes/message.admin.inc b/includes/message.admin.inc index c7ae1d0..d654af2 100644 --- a/includes/message.admin.inc +++ b/includes/message.admin.inc @@ -199,7 +199,9 @@ function message_admin_text_copy_validate($form, $form_state) { * Generates the message type editing form. */ function message_type_form($form, &$form_state, $message_type, $op = 'edit') { - if ($op == 'clone') { + // Use isset($form_state['original_message_type']) because this function is called + // again by AJAX callbacks. + if ($op == 'clone' && !isset($form_state['original_message_type'])) { $message_type->description .= ' (cloned)'; // Save the original message type into form state so that the submit // handler can clone its field instances.