You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not some JS error adding a row double, the entry is added twice to the Database. I can see it afterwards in the DB and the logs list two times the query that inserts a new sales price.
I am not sure what triggers this, but I assume some hook or trigger is called twice.
The text was updated successfully, but these errors were encountered:
It seems to be an issue with the new Spree::Price#sale_price= setter, which adds a price. And is (accidentally) called from def new_sale, where a variable is set sale_price = ....
Fixing that, changes the behaviour, but does not solve it. I am digging deeper.
When adding product sale prices at e.g. http://0.0.0.0:3000/admin/products/ruby-on-rails-mug/sale_prices, prices get added twice.
It is not some JS error adding a row double, the entry is added twice to the Database. I can see it afterwards in the DB and the logs list two times the query that inserts a new sales price.
I am not sure what triggers this, but I assume some hook or trigger is called twice.
The text was updated successfully, but these errors were encountered: