From 4f48c37b416d8f9fb8e2df79e027dfbbe8d64add Mon Sep 17 00:00:00 2001 From: sunhao Date: Wed, 16 Oct 2024 19:11:17 +0800 Subject: [PATCH] * [bug #56126, done, 0.2h] change ui text on set doc basic modal. --- module/doc/control.php | 3 ++- module/doc/ui/setdocbasic.html.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module/doc/control.php b/module/doc/control.php index 398d5cfdad..72cdc1251d 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -1582,7 +1582,8 @@ class doc extends control $this->view->objectType = $objectType; $this->view->lib = $lib; $this->view->libs = $libPairs; - $this->view->title = $this->lang->doc->release; + $this->view->docID = $docID; + $this->view->title = empty($docID) ? $this->lang->doc->release : $this->lang->settings; $this->display(); } } diff --git a/module/doc/ui/setdocbasic.html.php b/module/doc/ui/setdocbasic.html.php index 939e3c59fd..905f716b3f 100644 --- a/module/doc/ui/setdocbasic.html.php +++ b/module/doc/ui/setdocbasic.html.php @@ -14,7 +14,7 @@ formPanel ( setID('setDocBasicForm'), set::title($title), - set::submitBtnText($lang->doc->release), + set::submitBtnText(empty($docID) ? $lang->doc->release : $lang->save), on::change('[name=space],[name=product],[name=execution]')->call('loadObjectModules', jsRaw('event')), on::change('[name=lib]')->call('loadLibModules', jsRaw('event')), on::change('[name=project]')->call('loadExecutions', jsRaw('event')),