From fe3258aee0c4684f9a42606d01ffed10fd0a448b Mon Sep 17 00:00:00 2001 From: Steve Wirt Date: Fri, 2 Feb 2024 18:06:11 -0500 Subject: [PATCH] VACMS-15559 Carry forward draft revision log message. --- .../custom/va_gov_vamc/src/ServiceLocationMigration.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docroot/modules/custom/va_gov_vamc/src/ServiceLocationMigration.php b/docroot/modules/custom/va_gov_vamc/src/ServiceLocationMigration.php index 8121d5f48d..e459199cc8 100644 --- a/docroot/modules/custom/va_gov_vamc/src/ServiceLocationMigration.php +++ b/docroot/modules/custom/va_gov_vamc/src/ServiceLocationMigration.php @@ -73,7 +73,10 @@ public function __construct(array &$sandbox) { if (!$is_latest_revision) { $this->facilityService = $forward_revision; $this->migrateServicesLocationsFromFacility($service_locations); + // Append new log message to previous log message. + $original_message = $this->facilityService->getRevisionLogMessage(); $message .= "- Draft revision carried forward."; + $message = "$original_message - $message"; save_node_revision($this->facilityService, $message, TRUE); $sandbox['forward_revisions_count'] = (isset($sandbox['forward_revisions_count'])) ? ++$sandbox['forward_revisions_count'] : 1; }