From c7a5d7c2488276274000d047a8e7913659856114 Mon Sep 17 00:00:00 2001 From: Hafsa-Naeem Date: Mon, 26 Aug 2024 12:18:58 +0500 Subject: [PATCH] pkp/pkp-lib#10263 Relax editing metadata on published/posted materials --- classes/controllers/grid/issues/IssueGridHandler.php | 4 ++++ templates/authorDashboard/authorDashboard.tpl | 7 +------ templates/workflow/workflow.tpl | 12 ------------ 3 files changed, 5 insertions(+), 18 deletions(-) diff --git a/classes/controllers/grid/issues/IssueGridHandler.php b/classes/controllers/grid/issues/IssueGridHandler.php index fc08422dd29..395b4a13b3d 100644 --- a/classes/controllers/grid/issues/IssueGridHandler.php +++ b/classes/controllers/grid/issues/IssueGridHandler.php @@ -49,6 +49,7 @@ use PKP\file\TemporaryFileManager; use PKP\mail\Mailer; use PKP\notification\NotificationSubscriptionSettingsDAO; +use PKP\observers\events\MetadataChanged; use PKP\plugins\Hook; use PKP\plugins\PluginRegistry; use PKP\security\authorization\ContextAccessPolicy; @@ -603,6 +604,9 @@ public function publishIssue($args, $request) foreach ($publications as $publication) { /** @var Publication $publication */ if ($publication->getData('status') === Submission::STATUS_SCHEDULED && $publication->getData('issueId') === (int) $issue->getId()) { Repo::publication()->publish($publication); + + // dispatch the MetadataChanged event after publishing + event(new MetadataChanged($submission)); } } } diff --git a/templates/authorDashboard/authorDashboard.tpl b/templates/authorDashboard/authorDashboard.tpl index b6fa81767bb..5dddda52196 100644 --- a/templates/authorDashboard/authorDashboard.tpl +++ b/templates/authorDashboard/authorDashboard.tpl @@ -118,12 +118,7 @@ -
- {translate key="publication.editDisabled"} -
+ diff --git a/templates/workflow/workflow.tpl b/templates/workflow/workflow.tpl index 3a758c4807a..ee87423b1c9 100644 --- a/templates/workflow/workflow.tpl +++ b/templates/workflow/workflow.tpl @@ -187,18 +187,6 @@ {/if} -
- {translate key="publication.editDisabled"} -
-
- {translate key="submission.localeNotSupported" language="{{ currentSubmissionLanguageLabel }}"} -