dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #30291
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15376: minor undefined check in form.js
------------------------------------------------------------
revno: 15376
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2014-05-23 15:27:48 +0200
message:
minor undefined check in form.js
modified:
dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2014-05-22 12:50:24 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2014-05-23 13:27:48 +0000
@@ -330,7 +330,7 @@
var key = array[0];
var value = dataValues[key];
- if ( value.value.length > 254 )
+ if ( value !== undefined && value.value !== undefined && value.value.length > 254 )
{
value.value = value.value.slice(0, 254);
}