Uploaded image for project: 'ZK Calendar'
  1. ZK Calendar
  2. ZKCAL-124

an item with end date after 12:00 causes a javascript error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.2.0
    • 3.1.2
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      1. run attached example

      Current Result

      Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'firstChild')
      at init._createItemsData (calendar.wpd:3100:19)
      at init.items (calendar.wpd:3001:27)
      at init.setItems (zk.wpd:9781:15)
      at Function._set2 (zk.wpd:10857:38)
      at setter.func (zk.wpd:21709:18)
      at init.set (zk.wpd:21743:28)
      at setAttr (zk.wpd:31273:15)
      at Object.setAttrs (zk.wpd:31292:11)
      at doProcess (zk.wpd:29398:10)
      at doCmdsNow (zk.wpd:29517:11)

      Expected Result

      no error

      Debug Information

      dateNote._afterOffset is 5 which is wrong, should be 6. It's caused by error calculating the bound time in _createBoundTime()

      Workaround

      zkcal-124.js

        1. zkcal-124.js
          0.9 kB
          hawk
        2. zkcal-124.zul
          0.2 kB
          hawk
        3. Zkcal124Composer.java
          1 kB
          hawk

            hawk hawk
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: