Skip to content
Snippets Groups Projects
Commit 67bd50b9 authored by Jared Hancock's avatar Jared Hancock Committed by Peter Rotich
Browse files

queue: Fix topic name selection for columns

parent df5b13c6
Branches
Tags
No related merge requests found
...@@ -1211,6 +1211,10 @@ class SavedSearch extends VerySimpleModel { ...@@ -1211,6 +1211,10 @@ class SavedSearch extends VerySimpleModel {
&& $thisstaff->hasPerm(SearchBackend::PERM_EVERYTHING); && $thisstaff->hasPerm(SearchBackend::PERM_EVERYTHING);
} }
function inheritCriteria() {
return $this->flags & self::FLAG_INHERIT_CRITERIA;
}
function buildPath() { function buildPath() {
if (!$this->id) if (!$this->id)
return; return;
......
...@@ -93,7 +93,7 @@ implements TemplateVariable, Searchable { ...@@ -93,7 +93,7 @@ implements TemplateVariable, Searchable {
static function getSearchableFields() { static function getSearchableFields() {
return array( return array(
'name' => new TextboxField(array( 'topic' => new TextboxField(array(
'label' => __('Name'), 'label' => __('Name'),
)), )),
); );
......
...@@ -141,7 +141,7 @@ if ($column->getConditions()) { ...@@ -141,7 +141,7 @@ if ($column->getConditions()) {
$(function() { $(function() {
var colid = <?php echo $colid ?: 0; ?>, var colid = <?php echo $colid ?: 0; ?>,
nextid = <?php echo QueueColumnCondition::getUid(); ?>; nextid = <?php echo QueueColumnCondition::getUid(); ?>;
$('#' + colid + '-conditions select.add-condition').change(function() { $('#conditions select.add-condition').change(function() {
var $this = $(this), var $this = $(this),
container = $this.closest('div'), container = $this.closest('div'),
selected = $this.find(':selected'); selected = $this.find(':selected');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment