Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#1262 closed defect (fixed)

Editor window unusable in IE if a <gmd:Date> is empty

Reported by: landry Owned by: geonetwork-devel@…
Priority: major Milestone: v2.8.1
Component: General Version: v2.8.0
Keywords: Cc:

Description

Using IE9, if the XML contains smth like

<gmx:editionDate><gmd:Date/></gmx:editionDate>
}}} (for a thesaurus keyword)

then ext-ux DateTime component barfs on
{{{
web-client/src/main/resources/apps/js/ext-ux/DateTime/DateTime.js:            this.dateValue = new 
                  Date(Ext.isIE ? val.getTime() : val);
}}}

probably because val is undefined....

The js error makes the toolbar inactive, so editing a MD is not possible. Experienced on 2.8.x and master.

Change History (3)

comment:1 by fxp, 11 years ago

The problem comes from val.getTime which is undefined. Not sure why.

this.dateValue = new Date(Ext.isIE && val.getTime ? val.getTime() : val);

Any better fix ?

comment:2 by fxp, 11 years ago

Resolution: fixed
Status: newclosed

2.8.x commit d358ba06d21b5fb6ab6d4628dd62e8dd4ad91f07 master commit c564ce0d33623f779296c151cb09bf90a4554daa

comment:3 by ianwallen, 11 years ago

Milestone: v2.9.0v2.8.1
Note: See TracTickets for help on using tickets.