Skip to content

Commit 3bafc12

Browse files
committed
#9295 remove context level settings named continuousPublication
1 parent eb6a0ad commit 3bafc12

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

api/v1/submissions/PKPSubmissionController.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,11 @@ public function editPublication(Request $illuminateRequest): JsonResponse
12731273
return response()->json($errors, Response::HTTP_BAD_REQUEST);
12741274
}
12751275

1276+
// If no issue is selected, it will be considered as continuous publication
1277+
if (!isset($params['issueId'])) {
1278+
$params['continuousPublication'] = true;
1279+
}
1280+
12761281
Repo::publication()->edit($publication, $params);
12771282
$publication = Repo::publication()->get($publication->getId());
12781283

classes/components/forms/dashboard/PKPSubmissionFilters.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected function isManagerOrAdmin(): bool
6767
);
6868
}
6969

70-
protected function addSectionFields(): self
70+
protected function addSectionFields(): static
7171
{
7272
if (count($this->sections) === 1) {
7373
return $this;
@@ -89,7 +89,7 @@ protected function addSectionFields(): self
8989
]));
9090
}
9191

92-
protected function addAssignedTo(): self
92+
protected function addAssignedTo(): static
9393
{
9494
if (!$this->isManagerOrAdmin()) {
9595
return $this;
@@ -119,7 +119,7 @@ protected function addAssignedTo(): self
119119
}
120120

121121

122-
protected function addCategories(): self
122+
protected function addCategories(): static
123123
{
124124
if (!$this->categories->count()) {
125125
return $this;
@@ -151,7 +151,7 @@ protected function addCategories(): self
151151
return $this->addField(new FieldOptions('categoryIds', $props));
152152
}
153153

154-
protected function addDaysSinceLastActivity(): self
154+
protected function addDaysSinceLastActivity(): static
155155
{
156156
$props = [
157157
'min' => 0,

pages/dashboard/PKPDashboardHandler.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,10 @@ public function index($args, $request)
164164
'filtersForm' => $filtersForm->getConfig(),
165165
'views' => $this->getViews(),
166166
'contextMinReviewsPerSubmission' => $context->getData('numReviewsPerSubmission') ?: 0,
167-
'issueCount' => Repo::issue()
168-
->getCollector()
169-
->filterByContextIds([$context->getId()])
170-
->getQueryBuilder()
171-
->count(),
172167
'publicationSettings' => [
173168
'supportsCitations' => !!$context->getData('citations'),
174169
'identifiersEnabled' => $identifiersEnabled,
175170
'isReviewerSuggestionEnabled' => (bool)$context->getData('reviewerSuggestionEnabled'),
176-
'isContinuousPublicationEnabled' => (bool)$context->getData('continuousPublication'),
177171
],
178172
'componentForms' => [
179173
'contributorForm' => $contributorForm->getConfig(),

0 commit comments

Comments
 (0)