BUG-15193 Error in PM Table Data Search option
The search option in PMTables has a validation where the APP_UID field is ignored in the search because this was causing some search troubles when you wanna search a number that was include into the APP_UID (eg. 'APP_UID':405044408538cb9472ade260172, 'text to search':4408 ) Now, we add a checkbox field near the search text field to customize this behavior. With this checkbox 'Search also in the APP_UID field' you can decide if the search will include or not the APP_UID field.
This commit is contained in:
@@ -400,7 +400,7 @@ class AdditionalTables extends BaseAdditionalTables
|
||||
$closure = '';
|
||||
$types = array('INTEGER', 'BIGINT', 'SMALLINT', 'TINYINT', 'DECIMAL', 'DOUBLE', 'FLOAT', 'REAL');
|
||||
foreach ($aData['FIELDS'] as $aField) {
|
||||
if (($appUid == "false" && $aField['FLD_NAME'] != 'APP_UID') || ($appUid == "true")) {
|
||||
if (($appUid == false && $aField['FLD_NAME'] != 'APP_UID') || ($appUid == true)) {
|
||||
if (in_array($aField['FLD_TYPE'], $types)) {
|
||||
if (is_numeric($filter)) {
|
||||
$stringOr = $stringOr . '$a = $oCriteria->getNewCriterion(' . $sClassPeerName . '::' . $aField['FLD_NAME'] . ', "' . $filter . '", Criteria::EQUAL)' . $closure . ';';
|
||||
|
||||
@@ -421,6 +421,7 @@ class pmTablesProxy extends HttpProxyController
|
||||
$start = isset( $httpData->start ) ? $httpData->start : 0;
|
||||
$limit = isset( $httpData->limit ) ? $httpData->limit : $limit_size;
|
||||
$appUid = isset( $httpData->appUid ) ? $httpData->appUid : false;
|
||||
$appUid = ($appUid == "true") ? true : false;
|
||||
$filter = isset( $httpData->textFilter ) ? $httpData->textFilter : '';
|
||||
$additionalTables = new AdditionalTables();
|
||||
$table = $additionalTables->load( $httpData->id, true );
|
||||
|
||||
Reference in New Issue
Block a user