Commit 17b902bd authored by Côme Chilliet's avatar Côme Chilliet
Browse files

feat(management) Hide scope checkbox when basemode is off

issue #5135
parent cc698efb
......@@ -28,12 +28,15 @@
{/foreach}
<hr/>
{if $BASEMODE}
<label for="SCOPE">
<input type="checkbox" id="SCOPE" name="SCOPE" value="1"
{if ($SCOPE == 'sub')}checked="checked"{/if}/>
&nbsp;{t}Search in subtrees{/t}
</label>
<hr/>
{/if}
<label for="SEARCH" title="{$SEARCHDESC|escape}"><img src="geticon.php?context=actions&amp;icon=system-search&amp;size=16" alt="Search"/>
<input class="filter_textfield" id="SEARCH" name="SEARCH" type="search" value="{$SEARCH}"/>
......
......@@ -122,6 +122,7 @@ class managementFilter
$smarty = get_smarty();
$smarty->assign('SCOPE', $this->scope);
$smarty->assign('BASEMODE', $this->parent->listing->getBaseMode());
$smarty->assign('FILTER_PID', $this->pid);
$smarty->assign('SEARCH', $this->search);
$smarty->assign('TYPES', $this->types);
......
......@@ -85,6 +85,11 @@ class managementListing
$this->reloadColumns();
}
function getBaseMode()
{
return $this->baseMode;
}
function reloadColumns()
{
$columnInfos = $this->parent->getColumnConfiguration();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment