|
- {if $PARENTTAB eq 'Settings'}
+ {if $IS_ADMIN eq 'true'}
- {'LBL_SETTINGS'|@getTranslatedString} > {$MOD.LBL_USERS} >"{$USERNAME}"
+
+ {'LBL_SETTINGS'|@getTranslatedString} >
+ {$MOD.LBL_USERS} >"{$USERNAME}"
+
+
{else}
{$APP.LBL_MY_PREFERENCES}
diff --git a/Smarty/templates/UserEditView.tpl b/Smarty/templates/UserEditView.tpl
index 41e6067270..7d25bba738 100644
--- a/Smarty/templates/UserEditView.tpl
+++ b/Smarty/templates/UserEditView.tpl
@@ -138,7 +138,7 @@ function check_duplicate() {ldelim}
| |
+
{else}
{/if}
diff --git a/modules/Mobile/views/ListModuleRecords.php b/modules/Mobile/views/ListModuleRecords.php
index c0e0440a9c..d849adef9c 100644
--- a/modules/Mobile/views/ListModuleRecords.php
+++ b/modules/Mobile/views/ListModuleRecords.php
@@ -51,7 +51,6 @@ public function process(crmtogo_API_Request $request) {
$response = $wsResponse;
} else {
$wsResponseResult = $wsResponse->getResult();
- $CATEGORY = getParentTabFromModule($wsResponseResult['module']);
if ($request->get('compact') !='true') {
$customView = new CustomView($wsResponseResult['module']);
$id1=$request->get('viewName');
@@ -155,7 +154,6 @@ public function process(crmtogo_API_Request $request) {
$viewer->assign('PAGELIMIT', $config['NavigationLimit']);
$viewer->assign('_MODULE', $this->cachedModule($wsResponseResult['module']));
$viewer->assign('_MODE', $request->get('mode'));
- $viewer->assign('_CATEGORY', $CATEGORY);
$viewer->assign('_CUSTOMVIEW_OPTION', $customview_html);
$viewer->assign('_SEARCH', $request->get('search'));
$viewer->assign('LANGUAGE', $current_language);
diff --git a/modules/Users/ChangePassword.js b/modules/Users/ChangePassword.js
index d12cd3b8ff..6cad018824 100644
--- a/modules/Users/ChangePassword.js
+++ b/modules/Users/ChangePassword.js
@@ -126,7 +126,7 @@ function changepassword(is_admin, userid) {
document.getElementById('show-err_msg').style.display = 'block';
document.getElementById('err_msg').innerHTML = alert_arr['Old password is incorrect'];
} else {
- window.location.href = `index.php?module=Users&action=DetailView&record=${userid}&modechk=prefview`;
+ window.location.href = `index.php?module=Users&action=DetailView&record=${userid}`;
}
});
}
diff --git a/modules/Users/DetailView.php b/modules/Users/DetailView.php
index 1f53ae58b8..385797c892 100644
--- a/modules/Users/DetailView.php
+++ b/modules/Users/DetailView.php
@@ -55,17 +55,6 @@
$smarty->assign('IMAGE_PATH', $image_path);
$smarty->assign('ID', $focus->id);
-if (!empty($_REQUEST['modechk'])) {
- if ($_REQUEST['modechk'] == 'prefview') {
- $parenttab = '';
- } else {
- $parenttab = 'Settings';
- }
-} else {
- $parenttab = 'Settings';
-}
-
-$smarty->assign('PARENTTAB', $parenttab);
$smarty->assign('CHANGE_PW_BUTTON', '');
if ((is_admin($current_user) || $_REQUEST['record'] == $current_user->id)
&& isset($default_user_name)
diff --git a/modules/Users/EditView.php b/modules/Users/EditView.php
index 7db3610c71..8903bc532a 100644
--- a/modules/Users/EditView.php
+++ b/modules/Users/EditView.php
@@ -124,16 +124,6 @@ function showLicense() {
));
$smarty->assign('DUPLICATE', (isset($_REQUEST['isDuplicate']) ? vtlib_purify($_REQUEST['isDuplicate']) : ''));
$smarty->assign('USER_MODE', $mode);
-if (!empty($_REQUEST['modechk'])) {
- if ($_REQUEST['modechk'] == 'prefview') {
- $parenttab = '';
- } else {
- $parenttab = 'Settings';
- }
-} else {
- $parenttab = 'Settings';
-}
-$smarty->assign('PARENTTAB', $parenttab);
coreBOS_Session::set('Users_FORM_TOKEN', rand(5, 2000) * rand(2, 7));
$smarty->assign('FORM_TOKEN', $_SESSION['Users_FORM_TOKEN']);
$smarty->assign('Application_Textarea_Style', GlobalVariable::getVariable('Application_Textarea_Style', 'height:140px;', $currentModule, $current_user->id));
@@ -156,6 +146,6 @@ function showLicense() {
}
}
$smarty->assign('LDAP_BUTTON', $LdapBtnText);
-
+$smarty->assign('IS_ADMIN', is_admin($current_user));
$smarty->display('UserEditView.tpl');
?>
|