Skip to content
This repository was archived by the owner on Jun 14, 2026. It is now read-only.
This repository was archived by the owner on Jun 14, 2026. It is now read-only.

Time not properly displayed in the event modal when selecting 'next event' #649

@neillbell

Description

@neillbell

Platform & OS Version
Linux x64 & Ubuntu 16.04

The version of the app you are reporting:
1.3.005D

Device details:
Desktop

What is the nature of your issue
Bug

Details
When viewing events in the event modal, clicking "next event" does not properly set the displayed time. The human readable part is correct, but the time displayed is always of the first event displayed with the modal.

Looking through the code, it appears that videoDynamicTime is not being properly set because the $scope.event object is not being set to the new event when moving to the next event.

Here's a diff of a change I made that appears to fix the problem. I don't know the code well enough to know if the fix is appropriate.

diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js
index 6f5f53b..76343f0 100644
--- a/www/js/EventModalCtrl.js
+++ b/www/js/EventModalCtrl.js
@@ -1801,6 +1801,8 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
           var event = success.data.event;
           currentEvent = event;
 
+          $scope.event = event;
+        
           computeAlarmFrames(success.data);
           $scope.eventWarning = '';

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions