Hi,

unfortunately, admin_language prevents me from removing media items from my node. Every time I hit the remove button, I get a green Drupal status message on top of the field item saying that the node was saved... but it didn't hit save, just the "remove" button. The item is still there, I have to click again to remove it.

But even after the second click, I can not save my node form. The page reloads and I get this error:

"The content on this page has either been modified by another user"

It only happens while editing a node in the default language of my website. The other languages can be edited and saved. Disabling admin_language fixes the bug.

I use entity_translation and media with the newest dev versions.

I hope someone can reproduce and fix the bug :)

Greetings,
axe312

Comments

HnLn’s picture

Try to exclude file/ajax path.

pefferen’s picture

I am experiencing the same issue. Admin language is set to English, site language is set to Dutch. When trying to delete a file the file does not get deleted, the form is rerendered and the remove button is translated to English. Clicking the translated remove button results in the file being removed.

Probably someting in the processing of the form trigger for the remove button is wrong, as the Button Value is translated in the form to Dutch, in the ajax request only the english value is being recognised. So admin_language does not seem to translate the value from Dutch to English in the ajax callback.

dbazuin’s picture

When I set the admin language to Dutch deleting images gives a "page xxxx has been updated" message.
Saving the node is not longer possible because the form is already used by a other user.
Looks likes the remove image button triggers the node save callback function.

When I set the admin language to English it works ok in both Dutch as in English nodes.

stefan.r’s picture