Skip to content

Commit

Permalink
VACMS-15559 Carry forward draft revision log message.
Browse files Browse the repository at this point in the history
  • Loading branch information
swirtSJW committed Feb 2, 2024
1 parent 38c80ed commit fe3258a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fe3258a

Please sign in to comment.