Skip to content

Commit

Permalink
[BUGFIX] Pass correct record to edit and history links for changed re…
Browse files Browse the repository at this point in the history
…cords on the page
  • Loading branch information
vertexvaar committed May 2, 2024
1 parent 1668456 commit 383252d
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ <h3 title="{tableName}">
<f:if condition="{relatedRecord.changed}">
<li>
<f:if condition="{stagingLevel} == 'local'">
<publish:Link.RecordHistory class="in2publish-notextdecoration" title="{f:translate(key:'dirty_properties_undo',default:'undo')}" uid="{record.id}" table="{record.classification}">
<publish:Link.RecordHistory class="in2publish-notextdecoration" title="{f:translate(key:'dirty_properties_undo',default:'undo')}" uid="{relatedRecord.id}" table="{relatedRecord.classification}">
<i class="in2publish-icon-history"></i>
</publish:Link.RecordHistory>
<f:if condition="{record.id} > 1">
<be:link.editRecord class="in2publish-notextdecoration" uid="{record.id}" table="{record.classification}">
<f:if condition="{relatedRecord.id} > 1">
<be:link.editRecord class="in2publish-notextdecoration" uid="{relatedRecord.id}" table="{relatedRecord.classification}">
<i class="in2publish-icon-edit"></i>
<f:translate key="dirty_properties_edit" default="edit"/>
</be:link.editRecord>
</f:if>
</f:if>
Expand Down

0 comments on commit 383252d

Please sign in to comment.