Skip to content

Commit

Permalink
Issue #1449: Separate DynamicFieldName for Query into two Variables
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter committed Jan 10, 2022
1 parent 15b451e commit 98d14aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions var/httpd/htdocs/js/Core.Agent.DynamicFieldDBSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,10 @@ Core.Agent.DynamicFieldDBSearch = (function(TargetNS) {

// for usage in process context
var LiElementId = $Element.parents().closest('li.Activity').attr('id');
var DynamicFieldNameQuery = DynamicFieldName;
if (typeof LiElementId !== 'undefined') {
var ActivityDialogId = LiElementId.match(/^Process_ActivityDialog-([0-9a-f]{32})$/)[1];
DynamicFieldName = DynamicFieldName.substring(0, DynamicFieldName.indexOf('_' + ActivityDialogId));
DynamicFieldNameQuery = DynamicFieldNameQuery.substring(0, DynamicFieldNameQuery.indexOf('_' + ActivityDialogId));
}

// serialize form
Expand All @@ -271,7 +272,7 @@ Core.Agent.DynamicFieldDBSearch = (function(TargetNS) {
QueryString += ";Action="+FrontendInterface;
QueryString += ";Term="+encodeURIComponent(Request.term);
QueryString += ";MaxResults="+Core.Config.Get('Autocomplete.MaxResultsDisplayed');
QueryString += ";DynamicFieldName="+encodeURIComponent(DynamicFieldName);
QueryString += ";DynamicFieldName="+encodeURIComponent(DynamicFieldNameQuery);
QueryString += ";TicketID="+encodeURIComponent(TicketID);

URL = Core.Config.Get('Baselink');
Expand Down

0 comments on commit 98d14aa

Please sign in to comment.