Skip to content

Fix cloning after changing the form with ajax#188

Open
jorrit wants to merge 1 commit intoGizra:7.x-1.xfrom
jorrit:patch-3
Open

Fix cloning after changing the form with ajax#188
jorrit wants to merge 1 commit intoGizra:7.x-1.xfrom
jorrit:patch-3

Conversation

@jorrit
Copy link
Copy Markdown

@jorrit jorrit commented Apr 26, 2017

When the clone message type form is modified using AJAX (for instance, when changing language) the variable $form_state['original_message_type'] is cleared because menu_get_object('entity_object', 4) doesn't return a valid value anymore. Also, ' (cloned)' is appended again to the type title.

Also posted as https://www.drupal.org/node/2872964

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants