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

Wrong Format value is passed to static stat generator #549

Open BuilderNSV opened 3 months ago

BuilderNSV commented 3 months ago

Environment

Expected behavior

Static stat generator should know which Format has been choosen for report generation

Actual behavior

I think code in _GenerateStaticStats() function (znuny-7.0.15\Kernel\System\Stats.pm line 2204) masks actual value choosen by agent which is passed in %GetParam hash. it allways passes first value from predefined list of available formats, by default CSV.

Update: I'm sorry, I have a mistake. Somehow (I can't reproduce now) I've got Format throught _GenerateStaticStats(). Now I can' t do this, but I need this parameter during at least static report generation. It can be passed from AgentStatistics.pm/RunAction(). So this is not a bug but some enhancement. The ticket can be closed if you don't want to do this.