-
Notifications
You must be signed in to change notification settings - Fork 9.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
Add sort order to user agent rules table headers #16704
Add sort order to user agent rules table headers #16704
Conversation
Hi @JRhyne. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
@@ -69,7 +69,7 @@ | |||
<dataScope>search</dataScope> | |||
</settings> | |||
</field> | |||
<field name="theme" formElement="select"> | |||
<field name="theme" formElement="select" sortOrder="30"> |
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.
@JRhyne are you referring to
<actionDelete template="Magento_Backend/dynamic-rows/cells/action-delete" sortOrder="50">
? Can we simply remove its sortOrder to achieve the same?
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.
Yes, that solution will work as well. I added sortOrder to the other fields to support adding columns in specific order to that table.
Should I resubmit the request?
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.
Please do a commit amend and force push into the same branch.
As sortOrder
is not mandatory, I'm quite sure we can omit it. Probably sortOrder
for these fields may be declared in your theme and then merged altogether.
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.
Alright, it's pushed.
Sounds good.
6de5043
to
1b53299
Compare
Hi @orlangur, thank you for the review. |
Hi @JRhyne. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Summary / Description
Only one column on the User Agent Rules table had a sort order. This was causing the content of the table rows to not match the content of the table. I added the
sortOrder
attribute on the other two columns and this fixed the issue.Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist