fixbug_#21650,21773.

This commit is contained in:
wangxiaomeng
2022-04-18 14:52:18 +08:00
parent 4ea25a7725
commit 6c6ff205cf
2 changed files with 18 additions and 2 deletions
+4 -2
View File
@@ -228,7 +228,7 @@ foreach($fieldParams as $fieldName => $param)
<ul>
<?php foreach($queries as $queryID => $queryName):?>
<?php if(empty($queryID)) continue;?>
<?php $query = $this->search->getQuery($queryID);?>
<?php $query = $this->search->getById($queryID);?>
<li><?php echo html::a("javascript:executeQuery($queryID)", $queryName . ((common::hasPriv('search', 'deleteQuery') and $this->app->user->account == $query->account) ? '<i class="icon icon-close"></i>' : ''), '', "class='label user-query' data-query-id='$queryID' title='{$queryName}'");?></li>
<?php endforeach;?>
</ul>
@@ -363,7 +363,9 @@ $(function()
var setDateField = function(query, fieldNO)
{
var $period = $('#selectPeriod');
if($period.length) $period.remove();
// bug #21650
// if($period.length) $period.remove();
<?php
$selectPeriod = "<ul id='selectPeriod' class='dropdown-menu'>";