Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion includes/message.admin.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down