[Tickets #13433] JS error when all day event is hidden

noreply at bugs.horde.org noreply at bugs.horde.org
Tue Aug 12 12:07:23 UTC 2014


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/13433
------------------------------------------------------------------------------
  Ticket             | 13433
  Created By         | Jasper.Olbrich at students.uni-marburg.de
  Summary            | JS error when all day event is hidden
  Queue              | Kronolith
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


Jasper.Olbrich at students.uni-marburg.de (2014-08-12 12:07) wrote:

If a user has limited the number of events to show in month view, the  
following error can occur:
TypeError: elm.retrieve(...) is undefined

To reproduce:
1) Create more than max_events all-day-events on one day.
2) Navigate to the next month and back again.
3) The TypeError occurs and the JS on the page stops working.

I assume that this is because (~ line 1616 in kronolith.js)

                                         var elm = allDays.pop();
                                         elm.purge();
                                         elm.remove();

here an element from the events array is destroyed, but the reference  
is still contained in the events array. For me, the attached patch  
seems to fix this.



Jasper.Olbrich at students.uni-marburg.de (2014-08-12 12:07) uploaded:  
hidden_all_day_events.patch

http://bugs.horde.org/h/services/download/?app=whups&actionID=download_file&file=hidden_all_day_events.patch&ticket=13433&fn=%2Fhidden_all_day_events.patch





More information about the bugs mailing list