Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-40445

Wrong calendar event type when a tool is linked with Calendar and site language is not English

    XMLWordPrintable

    Details

    • 12 status:
      Resolved
    • Test Plan:
      Hide
      1. Go to a site with the language not set as English (Spanish for example).
      2. Create an assignment with the "Add due date to calendar" (Añadir fecha de entrega al calendario) option enabled.
      3. Go to Calendar and look for the event as the due date of the assignment. A "$localizedEventTypes.get($event.getType())" is displayed instead of the event type. 
      4. Go to Overview (Inicio) and look for the event at the due date of the assignment. A "Tipo: [missing key (npe): calendar null]" is displayed instead of "Tipo: Fecha límite" (Event type: Deadline)
      Show
      Go to a site with the language not set as English (Spanish for example). Create an assignment with the "Add due date to calendar" (Añadir fecha de entrega al calendario) option enabled. Go to Calendar and look for the event as the due date of the assignment. A "$localizedEventTypes.get($event.getType())" is displayed instead of the event type.  Go to Overview (Inicio) and look for the event at the due date of the assignment. A "Tipo: [missing key (npe): calendar null] " is displayed instead of "Tipo: Fecha límite" (Event type: Deadline)

      Description

      There is a problem while creating an assignment linked with the calendar in a site wich language is not English.

      When an assignment is created, a calendar event is created too with all its properties in the language of the site. When the calendar tool tries to display the type of the event, it uses the enum "CalendarEventType", in which everything is in English, so there is no match between these types in English and the type of the event in other language (e.g., "Deadline" in "CalendarEventType" but "Fecha límite" in the Spanish site calendar event).

       

        Gliffy Diagrams

          Zeplin

            Attachments

            1. screenshot1.PNG
              screenshot1.PNG
              14 kB
            2. screenshot2.PNG
              screenshot2.PNG
              4 kB
            3. screenshot3.PNG
              screenshot3.PNG
              44 kB
            4. screenshot4.PNG
              screenshot4.PNG
              39 kB

              Issue Links

                Activity

                  People

                  Assignee:
                  adrianmticarum Adrian Martinez
                  Reporter:
                  adrianmticarum Adrian Martinez
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration