[SOLVED] - BUG - uitype 1020 fail to convert seconds to human readable if greater than 1 month

Di più
03/07/2014 07:36 #3168 da cpvt
In 1020 uitype's fields, if the time elapsed in seconds is greater than 1 month, the conversion in human readable fails: it overvrite the number of minutes to the number of month.

SOLUTION:

in include/utils/crmv_utils.php in function time_duration around line 3062 find

$segments[strtolower($period)] = $count;

change it with

$segments[$period] = $count;


For the VTE developer:
you have defined an alternative $period array with only one letter to identify the period but if you use strtolower to populate the result array, the value 'M' became equal to 'm' overwriting the value in array.
Is it possible that no one of VTE customare that use SLA don't report to you this bug?

cpvt

Si prega Accedi a partecipare alla conversazione.

Tempo creazione pagina: 0.161 secondi