When editing a file the cancel button does not redirect properly. Destination path should be formatted. Now it is redirecting to /admin/content/file/thumbnails%3Ffolder%3D1. We should set $form_state['redirect'] an array with path and query, not the path string.

Comments

boychev’s picture

Status: Active » Needs review
StatusFileSize
new586 bytes

Here is my patch that fixes the cancel button redirect.

boychev’s picture

The above patch has a mistake. Here is the correct patch.

das-peter’s picture

Thanks, looks reasonable: applied, committed and pushed: http://drupalcode.org/project/media_browser_plus.git/commit/d1d96d9

@boychev Maybe you should check your profile, your git attribution code --author="git <git@853374.no-reply.drupal.org>" doesn't contain your username and I don't manually adjust what I copy from there to avoid making a mess ;)

das-peter’s picture

Issue summary: View changes

typo

salvis’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)