From 3faa48330a2247471463114f533f15def55e9e2d Mon Sep 17 00:00:00 2001 From: jekkos Date: Sun, 22 Dec 2024 17:12:47 +0100 Subject: [PATCH] Fix category as dropdown save (#4134) --- app/Models/Attribute.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Attribute.php b/app/Models/Attribute.php index c253ff297..2e20cfa26 100644 --- a/app/Models/Attribute.php +++ b/app/Models/Attribute.php @@ -547,7 +547,7 @@ class Attribute extends Model { $builder = $this->db->table('attribute_definitions'); $success = $builder->insert($definition_data); - $definition_data['definition_id'] = $this->db->insertID(); + $definition_data['definition_id'] = $this->getInsertID(); } } @@ -875,7 +875,7 @@ class Attribute extends Model $builder->set(["attribute_$data_type" => $attribute_value]); $builder->insert(); - $attribute_id = $this->db->insertID(); + $attribute_id = $this->getInsertID(); } $data = [