Closed (fixed)
Project:
Promotion
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2007 at 12:44 UTC
Updated:
25 Jul 2007 at 15:47 UTC
In promotion_form_submit(), drupal_goto() is used to redirect after the form has been submitted. However, it is better to return the path and let the Forms API do the redirect. This will allow other modules to use #submit when altering promotion_form and be called on submission.
| Comment | File | Size | Author |
|---|---|---|---|
| promotion-submit.patch | 543 bytes | decafdennis |
Comments
Comment #1
zostay commentedThanks!
I'll try it out and look into applying it for the next release.
Comment #2
zostay commentedPatch works as advertised. I will apply it shortly.
Comment #3
zostay commentedApplied to HEAD and will be part of the 1.8 release.
Comment #4
(not verified) commented