* Fix bug#18642,21572

This commit is contained in:
zenggang
2022-04-18 07:25:46 +00:00
parent 7155d82189
commit 1c8c50724d
3 changed files with 2 additions and 1 deletions
+1
View File
@@ -2332,6 +2332,7 @@ EOD;
if(empty($acls['views'])) return true;
$menu = isset($lang->navGroup->$module) ? $lang->navGroup->$module : $module;
if($menu == 'my' && $method == 'team') $menu = 'system'; // Fix bug #18642.
$menu = strtolower($menu);
if($menu != 'qa' and !isset($lang->$menu->menu)) return true;
if(($menu == 'my' && $method != 'team')or $menu == 'index' or $module == 'tree') return true;
-1
View File
@@ -399,7 +399,6 @@ class searchModel extends model
public function deleteQuery($queryID)
{
$this->dao->delete()->from(TABLE_USERQUERY)->where('id')->eq($queryID)->andWhere('account')->eq($this->app->user->account)->exec();
echo 'success';
}
/**
+1
View File
@@ -546,6 +546,7 @@ $(function()
if($('#formType').val() == 'more') expandForm(true);
$searchForm.on('click', '.user-query .icon-close', function(e)
{
e.preventDefault(); // Fix bug #21572.
var $query = $(this).closest('.user-query');
var queryId = $query.data('queryId');
var deleteQueryLink = $.createLink('search', 'deleteQuery', 'queryID=' + queryId);