From 6f22854c543fbd91e8f562a3a9a0e52756d7bb57 Mon Sep 17 00:00:00 2001 From: kodumbeats Date: Mon, 17 May 2021 13:50:44 -0400 Subject: [PATCH 1/3] Add certificate collection rules for updated and certificateID --- app/config/collections.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/config/collections.php b/app/config/collections.php index 1cff0031a2..62669c5f21 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -1272,6 +1272,24 @@ $collections = [ 'required' => false, 'array' => false, ], + [ + '$collection' => Database::SYSTEM_COLLECTION_RULES, + 'label' => 'Updated Date', + 'key' => 'updated', + 'type' => Database::SYSTEM_VAR_TYPE_NUMERIC, + 'default' => 0, + 'required' => false, + 'array' => false, + ], + [ + '$collection' => Database::SYSTEM_COLLECTION_RULES, + 'label' => 'Certificate ID', + 'key' => 'certificateId', + 'type' => Database::SYSTEM_VAR_TYPE_KEY, + 'default' => '', + 'required' => true, + 'array' => false, + ], ], ], Database::SYSTEM_COLLECTION_FILES => [ From 1120e8885afa0ce9356e60fa3b70538ed07d288a Mon Sep 17 00:00:00 2001 From: kodumbeats Date: Mon, 17 May 2021 14:10:17 -0400 Subject: [PATCH 2/3] CertificateID not a required param --- app/config/collections.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/config/collections.php b/app/config/collections.php index 62669c5f21..6789237c9c 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -1287,7 +1287,7 @@ $collections = [ 'key' => 'certificateId', 'type' => Database::SYSTEM_VAR_TYPE_KEY, 'default' => '', - 'required' => true, + 'required' => false, 'array' => false, ], ], From 98ca565534bf4ae00416722202d587a702de5365 Mon Sep 17 00:00:00 2001 From: kodumbeats Date: Mon, 17 May 2021 15:19:52 -0400 Subject: [PATCH 3/3] Add certificates exception fix to changelog --- CHANGES.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 4ea7524f21..540c047924 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -30,8 +30,9 @@ - Fixed form array casting in dashboard (#1070) - Fixed collection document rule form in dashboard (#1069) - Bugs in the Teams API: - - Fixed incorrect audit worker event names (#1143) - - Increased limit of memberships fetched in `createTeamMembership` to 2000 (#1143) +- Fixed incorrect audit worker event names (#1143) +- Increased limit of memberships fetched in `createTeamMembership` to 2000 (#1143) +- Fixed exception thrown when SSL certificate is already stored in the database (#1151) ## Breaking Changes (Read before upgrading!)