From bfc0ff8f43ac45929e3bdca46f59e0de845dc030 Mon Sep 17 00:00:00 2001 From: Jasmin Date: Wed, 11 Oct 2023 18:39:42 +0800 Subject: [PATCH 1/4] DATAAPI-25 Updated to use the same validation data for updating record So that the same validation data that potentially manipulated on interception point 'preValidateUpsertData' or 'postValidateUpsertData' will be passed through to the update record. --- handlers/rest-apis/data/v1/SingleRecord.cfc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/rest-apis/data/v1/SingleRecord.cfc b/handlers/rest-apis/data/v1/SingleRecord.cfc index eb8edba..57a3c77 100644 --- a/handlers/rest-apis/data/v1/SingleRecord.cfc +++ b/handlers/rest-apis/data/v1/SingleRecord.cfc @@ -74,7 +74,7 @@ component { var updated = dataApiService.updateSingleRecord( entity = entity , recordId = recordId - , data = body + , data = validationData ); if ( updated ) { @@ -96,4 +96,4 @@ component { restResponse.setData( { deleted=deletedCount } ); } -} \ No newline at end of file +} From 114f8aaf0b72679ff4718c0b494e13484bf1edc2 Mon Sep 17 00:00:00 2001 From: Dominic Watson Date: Fri, 13 Oct 2023 14:44:41 +0100 Subject: [PATCH 2/4] [twgit] Init feature 'feature-DATAAPI-25_pass-validated-data-to-update-record'. From 91ec37b48e81c7e5bf52d3a7b86ef5df57d7838c Mon Sep 17 00:00:00 2001 From: Dominic Watson Date: Wed, 8 Nov 2023 15:27:51 +0000 Subject: [PATCH 3/4] [twgit] Init hotfix 'hotfix-3.5.8'. From f13ea9264766cab0462cb098517ae639a63de263 Mon Sep 17 00:00:00 2001 From: Dominic Watson Date: Wed, 8 Nov 2023 15:30:31 +0000 Subject: [PATCH 4/4] changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb827db..8604c30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v3.5.8 + +* Validated data not passed through on update single record - PUT + ## v3.5.7 * Always return id field in entity GETs