RotherOSS / otobo

OTOBO is one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management. https://otobo.io/
GNU General Public License v3.0
263 stars 75 forks source link

Correctly handle uninitialized value in stats generation. #3928

Open svenoe opened 1 week ago

svenoe commented 1 week ago

Setting up a ticket accumulation statistic without configuring the y axis, results in uninitialized error warnings:

Use of uninitialized value $ColumnName in string ne at /opt/otobo/Kernel/System/Stats.pm line 3621.
Use of uninitialized value $ColumnNameOld in string ne at /opt/otobo/Kernel/System/Stats.pm line 3621.

https://github.com/RotherOSS/otobo/blob/4fa80733f249d49a5239bdf6aaa77590f0f89648/Kernel/System/Stats.pm#L3619 when executing e.g.:

bin/otobo.Console.pl Maint::Stats::Generate --number 10010 --target-directory tmpstat --language de

Please compare the $HeadArrayRef to a stat with set y axis, and deal with this appropriately (I'm not certain whether this is even valid out of my head, it might be, though).