Skip to content

Commit

Permalink
Issue #2911: Adapted df reference ajax update code to be able to set …
Browse files Browse the repository at this point in the history
…value.
  • Loading branch information
stefanhaerter authored and svenoe committed Feb 1, 2024
1 parent 6faecd5 commit 8d3fc9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions var/httpd/htdocs/js/Core.AJAX.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,12 @@ Core.AJAX = (function (TargetNS) {
}

// reference fields
// do not return because both hidden and visible input element need to be emptied
// both hidden and visible input element need to be set
var $ReferenceElement = $Element.parent().find('.DynamicFieldReference');
if ( $ReferenceElement.length ) {
$ReferenceElement.val( DataValue );
$Element.val( typeof DataValue == 'object' ? DataValue[0][0] : '');
$ReferenceElement.val( typeof DataValue == 'object' ? DataValue[0][1] : '' );
return;
}

// Other form elements
Expand Down

0 comments on commit 8d3fc9b

Please sign in to comment.