Skip to content

Commit

Permalink
try catch problems and show as warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
denshade committed Apr 24, 2019
1 parent 84861c1 commit b3cc336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImageMapClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function redcap_data_entry_form($project_id, $record, $instrument, $event
if (strpos($field_annotation, self::annotation) !== false) {
$fieldname = $field['field_name'];
$keyLabelCodeMap[$fieldname]['label'] = html_entity_decode($field['field_label']);
$keyLabelCodeMap[$fieldname]['script'] = str_replace(self::annotation . '=', "", $field_annotation);
$keyLabelCodeMap[$fieldname]['script'] = "try{".str_replace(self::annotation . '=', "", $field_annotation).'}catch(e) {console.warn(e);}' ;
}
}

Expand Down

0 comments on commit b3cc336

Please sign in to comment.