Skip to content

Commit

Permalink
Associate the citation with the version, not the publication itself
Browse files Browse the repository at this point in the history
  • Loading branch information
ishunko authored and nkissebe committed Oct 29, 2022
1 parent 1c593b1 commit a60df3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public function addItem($manifest, $blockId, $pub, $actor = 0, $elementId = 0, $
if ($new == true && $citation->get('id'))
{
$assoc = \Components\Citations\Models\Association::blank();
$assoc->set('oid', $pub->id);
$assoc->set('oid', $pub->version->id);
$assoc->set('tbl', 'publication');
$assoc->set('type', 'owner');
$assoc->set('cid', $citation->get('id'));
Expand Down

0 comments on commit a60df3b

Please sign in to comment.