First, I have ZM 1.21.3.
I've been trying to view events from oldest to newest (i.e. ascending time-wise).
However, when I click on the number of events in a monitor (whichever) and then put a check mark on the N events I want to view, then I click "View", the events start playing in descending time. The newest ones play first and the oldest ones play last. I want the opposite to happen.
At first, I thought this was a bug, so I tried hacking some files (/var/www/html/zm_functs.php and /var/www/html/zm_html_view_events.php).
First, I changed (in zm_html_view_events.php line 209):
Code: Select all
function viewEvents( form, name )
{
var events = new Array();
for (var i = 0; i < form.elements.length; i++)
{
Code: Select all
function viewEvents( form, name )
{
var events = new Array();
for (var i = form.elements-1; i >= 0; i++)
{
Then in the same file I changed line 233, from this:
Code: Select all
<input type="hidden" name="sort_asc" value="<?= $sort_asc ?>">
Code: Select all
<input type="hidden" name="sort_asc" value="1">
(Changing the zm_funcs.php was useless because the $sort_asc variable was global and changes affected _everything_.)
So, please either help me fix the bug or help me solve this problem some other way.
Thanks,
-Haxhia