Browse Source

Fix Array to String conversion message for IN conditions

pull/5314/head
Hypolite Petovan 3 years ago
parent
commit
0ee153e1bd
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      include/dba.php

+ 2
- 2
include/dba.php View File

@ -1015,7 +1015,7 @@ class dba {
$commands = [];
// Create a key for the loop prevention
$key = $table . ':' . implode(':', array_keys($conditions)) . ':' . implode(':', $conditions);
$key = $table . ':' . json_encode($conditions);
// We quit when this key already exists in the callstack.
if (isset($callstack[$key])) {
@ -1042,7 +1042,7 @@ class dba {
$rel_def = array_values(self::$relation[$table])[0];
// Create a key for preventing double queries
$qkey = $field . '-' . $table . ':' . implode(':', array_keys($conditions)) . ':' . implode(':', $conditions);
$qkey = $field . '-' . $table . ':' . json_encode($conditions);
// When the search field is the relation field, we don't need to fetch the rows
// This is useful when the leading record is already deleted in the frontend but the rest is done in the backend


Loading…
Cancel
Save