Skip to content

Commit

Permalink
Quick fix to Properties tab to restore "edit" as the default action (…
Browse files Browse the repository at this point in the history
…CFM-299) (#108)
  • Loading branch information
arlen authored Jun 29, 2023
1 parent 3ed18be commit 4115705
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit 4115705

Please sign in to comment.