gaiaresources / ala-citizenscience

Automatically exported from code.google.com/p/ala-citizenscience
1 stars 4 forks source link

Uncachgt TypeError when 'when' field is hidden #295

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a survey
2. Remove the 'when' field from it
3. Save a record
4. My Sightings

What is the expected output?
Map / Table of sightings

What do you see instead?
Nothging plus a javascript error:
Uncaught TypeError: Cannot call method 'replace' of null mySightings.js:378
Problem:

rec._when = rec._when_formatted.replace(/ /gi, " ");

Original issue reported on code.google.com by ke...@gaiaresources.com.au on 19 Jun 2012 at 7:19