Skip to content

Commit da04382

Browse files
committed
Fix 'Related descriptions' field.
1 parent 59c2df0 commit da04382

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/qubit/modules/informationobject/templates/_relatedMaterialDescriptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div>
1010
<ul>
1111
<?php foreach ($resource->relationsRelatedBysubjectId as $item) { ?>
12-
<?php if (method_exists($item->object, 'getPublicationStatus') && ($sf_user->isAuthenticated() || QubitTerm::PUBLICATION_STATUS_PUBLISHED_ID == $item->object->getPublicationStatus()->statusId)) { ?>
12+
<?php if ($sf_user->isAuthenticated() || QubitTerm::PUBLICATION_STATUS_PUBLISHED_ID == $item->object->getPublicationStatus()->statusId) { ?>
1313
<?php $itemTitle = $item->object->__toString(); ?>
1414

1515
<?php if (property_exists($item->object, 'levelOfDescription') || property_exists($item->object, 'identifier')) { ?>

plugins/arDominionB5Plugin/modules/informationobject/templates/_relatedMaterialDescriptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="<?php echo render_b5_show_value_css_classes(); ?>">
1010
<ul class="<?php echo render_b5_show_list_css_classes(); ?>">
1111
<?php foreach ($resource->relationsRelatedBysubjectId as $item) { ?>
12-
<?php if (method_exists($item->object, 'getPublicationStatus') && ($sf_user->isAuthenticated() || QubitTerm::PUBLICATION_STATUS_PUBLISHED_ID == $item->object->getPublicationStatus()->statusId)) { ?>
12+
<?php if ($sf_user->isAuthenticated() || QubitTerm::PUBLICATION_STATUS_PUBLISHED_ID == $item->object->getPublicationStatus()->statusId) { ?>
1313
<?php $itemTitle = $item->object->__toString(); ?>
1414

1515
<?php if (property_exists($item->object, 'levelOfDescription') || property_exists($item->object, 'identifier')) { ?>

0 commit comments

Comments
 (0)