Skip to content

Commit

Permalink
Hotfix - KReports - Find function changed to search for exact match (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
enricsinergia authored Jan 22, 2025
1 parent 3392902 commit c226bd9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/KReports/js/kreportsbase2.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,12 @@ var aL = function (e) {
e.record.set(e.column.id + "key", e.value);
e.record.set(
e.column.id,
K.kreports.whereOperators.ay.getAt(K.kreports.whereOperators.ay.find("value", e.value)).get("text")
// STIC-Custom 20240117 EPS - Wrong literal was being displayed when keys begin with same root. Changed find to search for exact match
// https://github.com/SinergiaTIC/SinergiaCRM/pull/547
// More info at https://cdn.sencha.com/ext/gpl/4.2.1/docs/#!/api/Ext.data.Store
// K.kreports.whereOperators.ay.getAt(K.kreports.whereOperators.ay.find("value", e.value)).get("text")
K.kreports.whereOperators.ay.getAt(K.kreports.whereOperators.ay.findExact("value", e.value)).get("text")
// END STIC-Custom
);
break;
}
Expand Down

0 comments on commit c226bd9

Please sign in to comment.