Skip to content

Commit

Permalink
pkp/pkp-lib#2163 Fix galley property args
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed Oct 19, 2017
1 parent 939ddc7 commit 75bc32c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/services/SubmissionService.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ public function modifyPropertyValues($hookName, $args) {
if (!empty($section)) {
$sectionService = \ServicesContainer::instance()->get('section');
$values['section'] = ($prop === 'section')
? $sectionService->getSummaryProperties($section, $args)
: $sectionService->getFullProperties($section, $args);
? $sectionService->getSummaryProperties($section, $propertyArgs)
: $sectionService->getFullProperties($section, $propertyArgs);
}
}
break;
Expand All @@ -213,7 +213,7 @@ public function modifyPropertyValues($hookName, $args) {
if ($publishedArticle) {
$values['galleys'] = [];
$galleyService = \ServicesContainer::instance()->get('galley');
$galleyArgs = array_merge($args, array('parent' => $publishedArticle));
$galleyArgs = array_merge($propertyArgs, array('parent' => $publishedArticle));
$galleys = $publishedArticle->getGalleys();
foreach ($galleys as $galley) {
$values['galleys'][] = ($prop === 'galleys')
Expand Down

0 comments on commit 75bc32c

Please sign in to comment.