znuny / Znuny

Znuny/Znuny LTS is a fork of the ((OTRS)) Community Edition, one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management.
https://www.znuny.org
GNU General Public License v3.0
332 stars 82 forks source link

Sort attribute of a parameter of static report is not passed to BuildSelection function #557

Open BuilderNSV opened 2 months ago

BuilderNSV commented 2 months ago

Environment

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