-
Notifications
You must be signed in to change notification settings - Fork 95
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
Sort values in AdminDynamicFieldScreenConfiguration #327
Sort values in AdminDynamicFieldScreenConfiguration #327
Conversation
Hi @eyazi , Please, keep your fork up-to-date with the upstream repository. Regards 🚀 |
Hi @eyazi, thank you for your PR. I would like to accept and merge it but first you have to cleanup the code that the ZnunyCodePolicy and all other pipelines successes. Also, please sync your fork with the upstream repository. Best regards, |
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.
index 0767c2f927..a292d6b14f 100644
--- a/Kernel/Modules/AdminDynamicFieldScreenConfiguration.pm
+++ b/Kernel/Modules/AdminDynamicFieldScreenConfiguration.pm
@@ -278,7 +278,9 @@ sub _ShowOverview {
$LayoutObject->Block( Name => 'Overview' );
- for my $DynamicFieldScreen ( sort { $DynamicFieldScreens{$a} cmp $DynamicFieldScreens{$b} } keys %DynamicFieldScreens ) {
+ for my $DynamicFieldScreen ( sort { $DynamicFieldScreens{$a} cmp $DynamicFieldScreens{$b} }
+ keys %DynamicFieldScreens )
+ {
$LayoutObject->Block(
Name => 'DynamicFieldScreenOverviewRow',
Data => {
@@ -288,7 +290,9 @@ sub _ShowOverview {
);
}
- for my $DefaultColumnsScreen ( sort { $DefaultColumnsScreens{$a} cmp $DefaultColumnsScreens{$b} } keys %DefaultColumnsScreens ) {
+ for my $DefaultColumnsScreen ( sort { $DefaultColumnsScreens{$a} cmp $DefaultColumnsScreens{$b} }
+ keys %DefaultColumnsScreens )
+ {
$LayoutObject->Block(
Name => 'DefaultColumnsScreenOverviewRow',
Data => {
(END)
Co-authored-by: Denny Korsukéwitz <[email protected]>
Co-authored-by: Denny Korsukéwitz <[email protected]>
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.
@eyazi sorry for that.
Today the code policy is bit ...
Co-authored-by: Denny Korsukéwitz <[email protected]>
Co-authored-by: Denny Korsukéwitz <[email protected]>
Proposed change
In „Assignment of dynamic fields to screens“ (AdminDynamicFieldScreenConfiguration) screens and default columns get sorted by the key of the setting and not the value of the setting.
This PR adds proper sorting. The „sorting“ doesn't look that bad on the screenshots below, but if you add your own modules where the key differs from the screen name, the view gets confusing very fast.
Type of change
Additional information
Old:

New:

Checklist