Commit 12849ca5 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

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

(cherry picked from commit ab6d6d0d)
parent a7677258
......@@ -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