From 344a535467899530f1ad6a49f62c31980baeaf7c Mon Sep 17 00:00:00 2001 From: iglocska Date: Fri, 7 Jun 2024 14:48:27 +0200 Subject: [PATCH 1/2] chg: [version] bump --- src/VERSION.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VERSION.json b/src/VERSION.json index 8610ab4..90068f3 100644 --- a/src/VERSION.json +++ b/src/VERSION.json @@ -1,4 +1,4 @@ { - "version": "1.19", + "version": "1.20", "application": "Cerebrate" } From fd9da66a9ee54480bd8dec4e1f9831af59acaccb Mon Sep 17 00:00:00 2001 From: iglocska Date: Thu, 13 Jun 2024 07:20:00 +0200 Subject: [PATCH 2/2] fix: [user add] fixed bug with metafields on new users causing an exception --- src/Model/Table/UsersTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Table/UsersTable.php b/src/Model/Table/UsersTable.php index 39cd123..66254e2 100644 --- a/src/Model/Table/UsersTable.php +++ b/src/Model/Table/UsersTable.php @@ -93,7 +93,7 @@ class UsersTable extends AppTable if (!empty($entity->meta_fields)) { foreach ($entity['meta_fields'] as $metaField) { if ($metaField['field'] === $permission_name) { - if (!$entity->new) { + if (!$entity->isNew()) { $conditions = [ 'field' => $permission_name, 'scope' => 'user', 'parent_id' => $entity->id ];