Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have been having a problem with the 'Continue & edit' button on admin/structure/views/add. The issue seems to be when a ?destination parameter is set (which is reasonable when on admin/structure/views/add), the form doesn't unset $_GET['redirect'] which ends up not saving the form and kicking the user back without saving or editing any view. Views should do something like core does like in node_form_delete_submit() or path_admin_form_delete_submit().
Comment | File | Size | Author |
---|---|---|---|
#1 | 1422230-views-ui-continue-edit-destination.patch | 799 bytes | Dave Reid |
Comments
Comment #1
Dave ReidPatch included for review and manually tested.
Comment #2
Dave ReidChecked this does not need to be backported to 6.x-3.x.
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedOut of curiousity, in what circumstance are you getting to the add new view page with a destination set?
Comment #4
Dave ReidI found it handy to append destination strings to local actions during local development. I have this in a custom module:
Comment #5
dawehnerThis seems to make sense, as the problem exist on all drupal forms. Just tested the patch and it worked as expected. Committed to 7.x-3.x