When searching for a user to tie a promotion to, the following JS error is returned:
Uncaught TypeError: Cannot call method 'replace' of undefined
The error is a result of the JSON being returned, the format expected should be "basic".
I'll submit a patch for this shortly.
Which version of Spree?
1.1.3 - I imagine it's happening in 1.2 as well though.
Sorry, scratch that. I see that you've removed it from 1.2.
having the same issue. Worked in 1.1.2-beta after upgrading to 1.1.3 it stoped working.
If however you search and receive no result, it works and "no result found" is displayed. If you search for something that returns a result the mentioned error appears.
I'll wait for that patch :)
Sorry to bother: how come you decided to drop the userPicker?
A workaround for this issue is to create a one-time use coupon for the user and then get them to use that on their next checkout. We dropped the user picker in 1.2 when we moved the auth components out of the default bundled components.
Oh, it's actually still there. It seems my memory is bad.
It's still there, but broken. I will look at fixing this some time this week most likely, refactoring it along the same lines as the variant autocomplete refactoring I completed last week.
[promo] Fix user picker
I've fixed this up in 1-2-stable and master now. Apologies for it taking so long!
No worries @radar and thanks for the help, I'll give it a go ASAP!
Hey guys does it still works on master / 1-3-stable? It looks like it doesn't. I cherry-pick this commit and make it worked great on our fork though. Thanks!
I just had to make a small change, maybe due to the fact we can't track a stable branch right now. See huoxito@0c5b1c5
Ok I think it's not working because of this 37c6430. you missed a dot. I'll confirm and pull request if it works