From 5528d06b2b4fd9d2567e6d3571cc9c806f1f3d2a Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Thu, 29 Jun 2023 16:36:57 -0400 Subject: [PATCH] Quick fix to Properties tab to restore "edit" as the default action (CFM-299) --- app/templates/element/subnavigation.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/templates/element/subnavigation.php b/app/templates/element/subnavigation.php index d93593127..bb624ad0c 100644 --- a/app/templates/element/subnavigation.php +++ b/app/templates/element/subnavigation.php @@ -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] @@ -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]