| Issue 97: | discount is duplicated if you enter a free item then a discount promotion | |
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. on the checkout sequence, enter a working 'free item' code
2. hit back
3. enter a discount code
What is the expected output? What do you see instead?
should have just the discount code. instead has it twice
What version of the product are you using? On what operating system?
1.0a2
Please provide any additional information below.
appears that adding reload
self.promotion_line_item.destroy if self.promotion_line_item
self.reload # take that promo out
to about line 60 of order.rb fixes it.
Jun 13, 2008
#1
edmundo...@gmail.com
Jun 14, 2008
Again, I cannot reproduce it using the user interface, using Firefox I'm not allowed to hit the submit button the second time, after hitted back button. I can only press it again if I go back changing the url to point to the first step again (checkout). Using IE6 I can press the button but the previous promotion is discarded. Im using 1.0.a3 but there was no change in the set_promo_code method from 1.0.a2.
Aug 11, 2008
Added in the change edmundo mentioned just to ensure the reference is deleted in the proper manner. r113
Status:
Fixed
|