Skip to content

Commit

Permalink
🔤 #282 refatorando autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael.cavalcante committed Jan 17, 2023
1 parent c16f612 commit 4b2a950
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions base/callbacks/autocomplete_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,28 +102,8 @@ function tableRecoverResult($bvars, $boolSearchAnyPosition, $arrUpdateFields, $s
$sql = tableRecoverCreateSql ( $bvars, $boolSearchAnyPosition, $arrUpdateFields ,$strSearchField ,$strTablePackageFuncion ,$trimText);
//impAutocomplete( $sql,true);return;

$res =null;
if( !class_exists('TPDOConnectionObj') ) {
throw new BadFunctionCallException(TMessage::ERROR_AUTOCOMPLETE_WHITOUT_TPDO_OBJ);
return;
} else {
$tpdo = New TPDOConnectionObj(false);
if( $configFileName == "null" ){
$tpdo->connect(null,true,null,null);
}elseif( $configFileName == null){
$tpdo->connect(null,true,null,null);
}else{
if ( !defined('ROOT_PATH') ) {
throw new BadFunctionCallException(TMessage::ERROR_AUTOCOMPLETE_WHITOUT_ROOT);
return;
}
if ( !defined('DS') ){ define ( 'DS', DIRECTORY_SEPARATOR ); }
require_once ROOT_PATH.DS.'includes'.DS.$configFileName;
$configArray = getConnectionArray();
$tpdo->connect(null,true,null,$configArray);
}
$res = $tpdo->executeSql($sql);
}
$tpdo = TPDOConnectionMultiBanco::getConfigBanco($configFileName);
$res = $tpdo->executeSql($sql);
return $res;
}

Expand Down

0 comments on commit 4b2a950

Please sign in to comment.