Uploaded image for project: 'Calendar'
  1. Calendar
  2. CAL-45

Calendar display an "Undefined" for news without category

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0.3, 1.4.0
    • 1.4.0
    • Agenda service
    • None
    • Ametys 3.6.0M3

      When we have some news without category, the calendar will display the title, prefixed by "Undefined".

      I think this line (l.376 in agenda.i18n.js):

      var eventCode = "<span class='hidden-L'>" + event.catLabel + "</span>";
      

      sould be replaced with :

      var eventCode = (event.catLabel !== undefined)?"<span class='hidden-L'>" + event.catLabel + "</span>":"";
      

            trizzi Thibaut Rizzi (Inactive)
            ceininger Colin Eininger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: