Commit ab6d6d0d authored by Ad Schellevis's avatar Ad Schellevis

(mvc, javascript) check for existence of id attribute on forms in mapDataToFormUI

parent 3f019e28
......@@ -99,7 +99,7 @@ function mapDataToFormUI(data_get_map) {
ajaxGet(url=data_url,sendData={}, callback=function(data, status) {
if (status == "success") {
$("form").each(function( index ) {
if ( $(this).attr('id').split('-')[0] == data_index) {
if ( $(this).attr('id') && $(this).attr('id').split('-')[0] == data_index) {
// related form found, load data
setFormData($(this).attr('id'), data);
collected_data[$(this).attr('id')] = data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment