From 447b5f81fb2469e4f3e8a3d5abed0650908e50a8 Mon Sep 17 00:00:00 2001 From: Benn Oshrin Date: Fri, 9 Jan 2026 09:26:22 -0500 Subject: [PATCH] Fix deprecation (NOJIRA) --- app/src/Model/Table/AttributesTable.php | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/app/src/Model/Table/AttributesTable.php b/app/src/Model/Table/AttributesTable.php index 57b5dd44c..b8cf4c63a 100644 --- a/app/src/Model/Table/AttributesTable.php +++ b/app/src/Model/Table/AttributesTable.php @@ -90,12 +90,12 @@ public function initialize(array $config): void { public function install(int $matchgridId) { // First create an "official" attribute group, if one doesn't already exist - $groupObj = $this->AttributeGroups->find('all', [ - 'conditions' => [ - 'matchgrid_id' => $matchgridId, - 'name' => 'official' - ]]) - ->first(); + $groupObj = $this->AttributeGroups->find() + ->where([ + 'matchgrid_id' => $matchgridId, + 'name' => 'official' + ]) + ->first(); if(empty($groupObj)) { // No existing Attribute Group, create one @@ -183,12 +183,12 @@ public function install(int $matchgridId) { ]; foreach($attrs as $attr) { - $attrObj = $this->find('all', [ - 'conditions' => [ - 'matchgrid_id' => $matchgridId, - 'name' => $attr['name'] - ]]) - ->first(); + $attrObj = $this->find() + ->where([ + 'matchgrid_id' => $matchgridId, + 'name' => $attr['name'] + ]) + ->first(); if(empty($attrObj)) { // No existing Attribute, create one @@ -299,6 +299,7 @@ public function validationDefault(Validator $validator): Validator { ); $validator->allowEmptyString('search_distance'); +// CO-2181 do we even want this anymore? $validator->add( 'search_exact', 'toggle',