Closed (fixed)
Project:
Ubercart
Version:
6.x-2.0-beta5
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
6 Mar 2009 at 21:29 UTC
Updated:
3 Jan 2014 at 00:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Island Usurper commentedTag for DC 2009 code sprint.
Comment #2
torgospizzaHey Ryan, no patch attached :)
Comment #3
rszrama commentedComment #4
Island Usurper commentedPatch didn't work for new products. Rerolled.
Comment #5
a_c_m commentedCurrently it wont override a existing destination in the URL, so if your editing a node from the 'list content' page when you hit Save and continue, your still getting pushed back to the 'list content' page.
Comment #6
rszrama commentedI tried basically everything I could regarding $form_state['redirect'] and even $form_state['#redirect'] before resorting to simply unsetting the destination variable if the Save and continue button is clicked. I think the attached patch is ready to roll.
Comment #7
Island Usurper commentedI think the Save and Continue button should include the GET data in its redirect. For example, if someone clicks an edit link from the Content admin page, the Save and Continue button should return them to the node edit form, but if they click Save after that, they should be redirected back to the admin page.
Comment #8
rszrama commentedI thought about that but consciously avoided it, b/c moving tabs would do away w/ the destination string anyways. Also, isn't your patch passing an array now through the redirect instead of a string as specified by drupal_goto()? I think my vote is still for the patch in #6, but I don't really one way or the other.
Comment #9
rszrama commentedNeeded to move on w/ other changes in the product module and was too lazy to revert and re-apply these patches. I think #6 is at least bug free, and we can readdress if a consensus is reached one way or the other related to preserving $_GET.