CMXX - Update whereclause get/post
This commit is contained in:
@@ -14,7 +14,7 @@ $post_content = json_decode($input,true);
|
||||
if (empty($partner->soldto) || $partner->soldto == ''){$soldto_search = '%';} else {$soldto_search = '-%';}
|
||||
|
||||
//default whereclause
|
||||
list($whereclause,$condition) = getWhereclause('',$permission,$partner);
|
||||
list($whereclause,$condition) = getWhereclause('',$permission,$partner,'');
|
||||
|
||||
|
||||
//SET PARAMETERS FOR QUERY
|
||||
@@ -70,7 +70,9 @@ if ($command == 'update' && isAllowed('translation_manage',$profile,$permission,
|
||||
$sql = 'UPDATE text_variables_translations SET '.$clause.' WHERE rowID = ? '.$whereclause.'';
|
||||
$execute_input[] = $id;
|
||||
$stmt = $pdo->prepare($sql);
|
||||
$stmt->debugDumpParams();
|
||||
$stmt->execute($execute_input);
|
||||
|
||||
}
|
||||
elseif ($command == 'insert' && isAllowed('translation_manage',$profile,$permission,'C') === 1){
|
||||
$sql = 'INSERT INTO text_variables_translations ('.$clause_insert.') VALUES ('.$input_insert.')';
|
||||
|
||||
Reference in New Issue
Block a user