Posted by imrubio22 on October 5, 2011 at 5:30pm
1 follower
| Project: | Ubercart Discounts (Alternative) |
| Version: | 6.x-2.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hello. The discount code generator is a great addition but I had a problem copying the generated codes and pasting into the code field. The return carriages would drop out when I pasted it. It looks like the problem has to do with the "/n" being used to separate each code within the generator form is not translating well when pasted into the discount creation form.
To fix this I edited the file uc_discounts.admin.inc at line 1166 to$form_state['storage']['codes'] = implode("<br />", $codes);
The '<br />' seems to be retained when pasted into the discount creation page. Let me know if there's a better way to do this but this works for now.
thanks!