Skip to content

Commit

Permalink
fix for #951
Browse files Browse the repository at this point in the history
  • Loading branch information
mevdschee committed Jan 26, 2023
1 parent 9d12cec commit 57d6859
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api.include.php
Expand Up @@ -7974,7 +7974,7 @@ private function handleRecords(string $operation, string $tableName) /*: void*/
$query = call_user_func($recordHandler, $operation, $tableName);
$filters = new FilterInfo();
$table = $this->reflection->getTable($tableName);
$query = str_replace('][]=', ']=', str_replace('=', '[]=', $query));
$query = str_replace('][]=', ']=', str_replace('=', '[]=', $query ?: ''));
parse_str($query, $params);
$condition = $filters->getCombinedConditions($table, $params);
VariableStore::set("authorization.conditions.$tableName", $condition);
Expand Down
2 changes: 1 addition & 1 deletion api.php
Expand Up @@ -7974,7 +7974,7 @@ private function handleRecords(string $operation, string $tableName) /*: void*/
$query = call_user_func($recordHandler, $operation, $tableName);
$filters = new FilterInfo();
$table = $this->reflection->getTable($tableName);
$query = str_replace('][]=', ']=', str_replace('=', '[]=', $query));
$query = str_replace('][]=', ']=', str_replace('=', '[]=', $query ?: ''));
parse_str($query, $params);
$condition = $filters->getCombinedConditions($table, $params);
VariableStore::set("authorization.conditions.$tableName", $condition);
Expand Down

0 comments on commit 57d6859

Please sign in to comment.