Open Bug 1630911 Opened 5 months ago Updated 4 days ago

Datepicker does not work with active (german?) language pack. TypeError: "existingValue is undefined" ... customElements.js:222:19

Categories

(Calendar :: General, defect)

Lightning 68
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: h.judt, Unassigned, NeedInfo)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0

Steps to reproduce:

  1. Use the german language pack.
  2. Create a new event or edit an existing one.
  3. The dialog for editing the event appears.
    4a. Enter a date in start or end date widgets. Then move the focus somewhere else.
    4b. Click on the button next to the start or end date widget.

Actual results:

4a. As soon as the text field loses focus, the old value will be restored, the user simply cannot change it.
4b. Behold that it will not do anything on click.

Expected results:

4a. The new date stays in the text field.
4b. A calendar widget drops to select a start/end date from.

Note that this all works correctly when deactivating the language pack (this is currently my workaround for this issue).
The widgets for start/end time work fine btw.
I have not tested whether this occurs with other language packs.

Here is one of the log messages I get when the dialog opens:
TypeError: "existingValue is undefined"
set value chrome://calendar/content/datetimepickers/datetimepickers.js:874
connectedCallback chrome://calendar/content/datetimepickers/datetimepickers.js:764
<anonymous> chrome://global/content/customElements.js:219
customElements.js:222:19

Also, before this I find in the logs:
chrome://calendar/content/widgets/minimonth.xml : Unable to run script because scripts are blocked internally. (5 times)
and immediately after that:
XML-Verarbeitungsfehler: Nicht definierte Entität
Adresse: file:///usr/lib64/thunderbird/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/chrome/calendar/content/calendar/widgets/minimonth.xml
Zeile Nr. 66, Spalte 7:

This affects all datetime picker widgets, not only the one in this dialog.

The messages from Comment #2 are not there every time. There are two entries for the year button tooltips missing from chrome/calendar-de/locale/de/calendar/global.dtd, though adding them does not restore the datepicker functionality.

Strangely, what does work is the minimonth view in the "tasks of today" bar and in the top left of the calendar view. Those are not affected, but maybe these are not datetimepicker widgets.

Ok, I don't know what I have done wrong in the last steps, but it seems, that adding the two missing entries has fixed the problem. Maybe something has been cached so it didn't pick up the changes.

I'll attach the patch that seems to fix it for me.

Resetting severity to default of --.

Component: Untriaged → General
Product: Thunderbird → Calendar
Version: 68 → unspecified

Merike, are you able to reproduce this?

Flags: needinfo?(merikes.lists)
Summary: Lightning add-on: Datepicker does not work with active (german?) language pack → Datepicker does not work with active (german?) language pack. TypeError: "existingValue is undefined" ... customElements.js:222:19
Version: unspecified → Lightning 68

No, I'm using et without language pack. Also not using distro packaged version.
I don't see information about distro/packager mentioned? Language packs used to be built by distros, if there were translations missing they might've used wrong changeset for building it etc.

Flags: needinfo?(merikes.lists)

Harald, have you tried Thunderbird 68.12.0 or Thunderbird 78.2.2? The German localization should have been fixed in the meantime.

Flags: needinfo?(h.judt)
You need to log in before you can comment on or make changes to this bug.