Skip to content

Commit

Permalink
Fix deprecation (NOJIRA)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Jan 9, 2026
1 parent 8febad5 commit 447b5f8
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions app/src/Model/Table/AttributesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 447b5f8

Please sign in to comment.