From ab493e2150f43e9ad919c2115ebfea8eebdfb33d Mon Sep 17 00:00:00 2001 From: mokaddem Date: Thu, 12 Nov 2020 15:41:53 +0100 Subject: [PATCH] chg: [galaxyCluster:add] Adapt page title if forking --- app/View/GalaxyClusters/add.ctp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/View/GalaxyClusters/add.ctp b/app/View/GalaxyClusters/add.ctp index 4165ada40..3228d52aa 100644 --- a/app/View/GalaxyClusters/add.ctp +++ b/app/View/GalaxyClusters/add.ctp @@ -15,7 +15,11 @@ echo $this->element('genericElements/Form/genericForm', array( 'form' => $this->Form, 'data' => array( - 'title' => $action == 'add' ? __('Add Galaxy Cluster') : __('Edit Galaxy Cluster'), + 'title' => ( + $action == 'add' ? + (isset($forkedClusterMeta) ? __('Fork Galaxy Cluster') : __('Add Galaxy Cluster')) : + __('Edit Galaxy Cluster') + ), 'model' => $modelForForm, 'fields' => array( array(