Skip to content

[v4.4] [FIX] A few small tweaks for the new promotion admin#6021

Merged
tvdeyen merged 2 commits intov4.4from
backport/v4.4/pr-5953
Dec 6, 2024
Merged

[v4.4] [FIX] A few small tweaks for the new promotion admin#6021
tvdeyen merged 2 commits intov4.4from
backport/v4.4/pr-5953

Conversation

@github-actions
Copy link
Copy Markdown

@github-actions github-actions Bot commented Dec 6, 2024

Backport

This will backport the following commits from main to v4.4:

Questions ?

Please refer to the Backport tool documentation

adammathys and others added 2 commits December 6, 2024 13:26
This helps fix an issue when creating a new promotion with a single
code. Without the inverse_of parameter, our associated codes won't
correctly infer that they're associated to a new promotion and will
generate undefined method for nil errors.

Co-authored-by: Alistair Norman <alistair@super.gd>
(cherry picked from commit 2cb9ac1)
Unfortunately, our resource controller is hardcoded to look for a
`Spree::<model_name>` object, which obviously doesn't work with the new
promotion namespace.

Co-authored-by: Alistair Norman <alistair@super.gd>
(cherry picked from commit 6ea8b43)
@github-actions github-actions Bot requested a review from a team as a code owner December 6, 2024 13:26
@github-actions github-actions Bot added the changelog:solidus_promotions Changes to the solidus_promotions gem label Dec 6, 2024
@tvdeyen tvdeyen enabled auto-merge December 6, 2024 13:46
@tvdeyen tvdeyen disabled auto-merge December 6, 2024 15:09
@tvdeyen tvdeyen merged commit 816bc66 into v4.4 Dec 6, 2024
@tvdeyen tvdeyen deleted the backport/v4.4/pr-5953 branch December 6, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:solidus_promotions Changes to the solidus_promotions gem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants