* Fix bug #38179.
This commit is contained in:
@@ -105,13 +105,12 @@ class repo extends control
|
||||
session_start();
|
||||
$this->config->repo->search['params']['product']['values'] = $products;
|
||||
$this->config->repo->search['params']['projects']['values'] = $projects;
|
||||
$this->config->repo->search['actionURL'] = $this->createLink('repo', 'maintain', "objectID={$objectID}&orderBy={$orderBy}&recPerPage={$recPerPage}&pageID={$pageID}&type=bySearch¶m=myQueryID");
|
||||
$this->config->repo->search['queryID'] = 0;
|
||||
$this->config->repo->search['actionURL'] = $this->createLink('repo', 'maintain', "objectID={$objectID}&orderBy={$orderBy}&recPerPage={$recPerPage}&pageID={$pageID}&type=bySearch¶m=myQueryID");
|
||||
$this->config->repo->search['queryID'] = $param;
|
||||
$this->config->repo->search['onMenuBar'] = 'yes';
|
||||
$this->loadModel('search')->setSearchParams($this->config->repo->search);
|
||||
|
||||
$this->view->title = $this->lang->repo->common . $this->lang->colon . $this->lang->repo->browse;
|
||||
|
||||
$this->view->title = $this->lang->repo->common . $this->lang->colon . $this->lang->repo->browse;
|
||||
$this->view->type = $type;
|
||||
$this->view->orderBy = $orderBy;
|
||||
$this->view->objectID = $objectID;
|
||||
|
||||
@@ -141,7 +141,7 @@ class repoModel extends model
|
||||
if($query)
|
||||
{
|
||||
$this->session->set($queryName, $query->sql);
|
||||
$this->session->set($queryName . 'Form', $query->form);
|
||||
$this->session->set('repoForm', $query->form);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -56,10 +56,13 @@ $config->repo->dtable->fieldList['actions']['list']['edit']['url'] = $this->cr
|
||||
$config->repo->dtable->fieldList['actions']['list']['delete']['url'] = $this->createLink('repo', 'delete', "repoID={id}&objectID={$objectID}");
|
||||
|
||||
$repos = initTableData($repoList, $config->repo->dtable->fieldList, $this->repo);
|
||||
$queryMenuLink = createLink('repo', 'maintain', "objectID=$objectID&orderBy=&recTotal={$pager->recTotal}&pageID={$pager->pageID}&type=bySearch¶m={queryID}");
|
||||
|
||||
featureBar
|
||||
(
|
||||
set::current('all'),
|
||||
set::linkParams("product=$product->id&branch=$branch&browseType={key}"),
|
||||
set::queryMenuLinkCallback(fn($key) => str_replace('{queryID}', (string)$key, $queryMenuLink)),
|
||||
li(searchToggle(set::open($type == 'bySearch'))),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user