-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix property destroy - use destroy instead of discard #5577
Conversation
@@ -6,19 +6,19 @@ | |||
before { sign_in create(:admin_user, email: '[email protected]') } | |||
|
|||
it "lists properties and allows deleting them" do | |||
create(:property, name: "Type", presentation: "Type") | |||
create(:property, name: "Type prop", presentation: "Type prop") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed "Type" to "Type prop" because of text Option types" used for the menu item which test recognizes as non deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
@elia @rainerdema I think we need to backport this to 4.3, adding the appropriate label. |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
@kennyadsl I just realized the PR is for solidus admin only, meaning that we don't need the back port since we can release independently. |
As the
Spree::Property
object is not discardable, use the defaultdestroy_all
methodFixes #5576