Open BuilderNSV opened 2 months ago
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', }, });
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
Actually I see values sorted alphabetically - April, Match, January and so on
Create a static report with parameter describe above and see values order in dropdown list
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
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