Skip to content
Snippets Groups Projects
Commit 490d5d56 authored by Alexey Korepov's avatar Alexey Korepov
Browse files

Fixed entity conditions with null value

parent 73d613a6
No related branches found
No related tags found
No related merge requests found
......@@ -705,19 +705,11 @@ class TestHelpers {
// NULL is treated as `=` condition for EntityQery queries.
case NULL:
case '=':
foreach ($value as $valueItem) {
if (($valueItem['value'] ?? NULL) == $condition['value']) {
return TRUE;
}
}
return FALSE;
// NULL is treated as `=` condition for EntityQery queries.
case NULL:
case '=':
foreach ($value as $valueItem) {
if (($valueItem['value'] ?? NULL) == $condition['value']) {
return TRUE;
if (is_array($value)) {
foreach ($value as $valueItem) {
if (($valueItem['value'] ?? NULL) == $condition['value']) {
return TRUE;
}
}
}
return FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment