Skip to content

Quick fix to subnavigation Properties tab to restore default action (CFM-299) #108

Merged
merged 1 commit into from
Jun 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions app/templates/element/subnavigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@
print $this->Html->link(
__d('controller', 'People', [1]),
[ 'controller' => 'people',
'action' => $curAction == 'edit' ? 'edit' : 'view',
// TODO: the following test needs to be made based on read-only status of the Person
'action' => $curAction == 'view' ? 'view' : 'edit',
$curId
],
['class' => $linkClass]
Expand Down Expand Up @@ -267,7 +268,8 @@
print $this->Html->link(
__d('controller', 'Properties', [99]),
[ 'controller' => 'groups',
'action' => $curAction == 'edit' ? 'edit' : 'view',
// TODO: the following test needs to be made based on read-only status of the group
'action' => $curAction == 'view' ? 'view' : 'edit',
$curId
],
['class' => $linkClass]
Expand Down