Skip to content
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 attribute of a parameter of static report is not passed to BuildSelection function #557

Open
BuilderNSV opened this issue Apr 19, 2024 · 0 comments

Comments

@BuilderNSV
Copy link

Environment

  • Server OS: Linux Ubuntu
  • Browser: Firefox
  • Znuny version: 7.0.16

Expected behavior

I want to see list of some defined parameter of static report sorted by not default method.
As example, I have

my @Params = (
{
Frontend => 'Month',
Name => 'Month',
Multiple => 0,
Size => 0,
SelectedID => 'None',
**Sort => 'AlphanumericKey',**
Data => {
'None' => 'None',
'01 January' => 'January',
'02 February' => 'February',
'03 March' => 'March',
'04 April' => 'April',
},
});

And I expected to see values in dropdown list in the same order

Actual behavior

Actually I see values sorted alphabetically - April, Match, January and so on

How to reproduce

Create a static report with parameter describe above and see values order in dropdown list

Additional information

As I can see Sort atribute does not passed at all to BuildSelection() call in Kernel\Output\HTML\Statistics\View.pm for report of static type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant