Skip to content

Commit

Permalink
Hotfix - KReports - Deshacer los cambios del PR #505 (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
enricsinergia authored Dec 20, 2024
1 parent 1a4bcb6 commit 635b13c
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions modules/KReports/KReportQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -1548,9 +1548,12 @@ function buildWhereClauseForChildren($thisChildren, $thisOperator, $completeArra

function getWhereOperatorClause($operator, $fieldname, $fieldid, $path, $value, $valuekey, $valueto, $valuetokey = '', $jointype = '') {
global $current_user;
// STIC-Custom EPS 20241205
// https://github.com/SinergiaTIC/SinergiaCRM/pull/505
$db = DBManagerFactory::getInstance();
// STIC-Custom EPS 20211220 - Anular el PR #505
// https://github.com/SinergiaTIC/SinergiaCRM/pull/524
// // STIC-Custom EPS 20241205
// // https://github.com/SinergiaTIC/SinergiaCRM/pull/505
// $db = DBManagerFactory::getInstance();
// // ENS STIC-Custom
// ENS STIC-Custom

// initialize
Expand Down Expand Up @@ -1648,9 +1651,12 @@ function getWhereOperatorClause($operator, $fieldname, $fieldid, $path, $value,
break;
}
// process the operator
// STIC-Custom EPS 20241205 - quote the value to avoid errors when certain values are used (apostrophe)
// https://github.com/SinergiaTIC/SinergiaCRM/pull/505
$value = $db->quote($value);
// STIC-Custom EPS 20211220 - Anular el PR #505
// https://github.com/SinergiaTIC/SinergiaCRM/pull/524
// // STIC-Custom EPS 20241205 - quote the value to avoid errors when certain values are used (apostrophe)
// // https://github.com/SinergiaTIC/SinergiaCRM/pull/505
// $value = $db->quote($value);
// // END STIC-Custom
// END STIC-Custom
switch ($operator) {
case 'autocomplete':
Expand Down

0 comments on commit 635b13c

Please sign in to comment.