From d41ec9fa733ded604777beb69c4b9568fd77b791 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Mon, 7 Apr 2025 12:19:42 +0200 Subject: [PATCH] FIX updated query logic to handle 'conseiller' key checks for both non-existence and empty values --- template-parts/admin/artisans-section-group.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/template-parts/admin/artisans-section-group.php b/template-parts/admin/artisans-section-group.php index 55b50da..18836ea 100644 --- a/template-parts/admin/artisans-section-group.php +++ b/template-parts/admin/artisans-section-group.php @@ -30,8 +30,16 @@ $queryAllUnaffectedArtisansByStatus = array( 'compare' => '=' ), array( - 'key' => 'conseiller', - 'compare' => 'NOT EXISTS' + 'relation' => 'OR', + array( + 'key' => 'conseiller', + 'compare' => 'NOT EXISTS' + ), + array( + 'key' => 'conseiller', + 'value' => '', + 'compare' => '=' + ) ) ) );