CMXX - Update whereclause get/post

This commit is contained in:
“VeLiTi”
2025-02-21 17:48:51 +01:00
parent d5826fccdb
commit 8dd7023310
71 changed files with 91 additions and 83 deletions

View File

@@ -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.')';