Skip to content
Snippets Groups Projects
Unverified Commit 9f97399e authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4785 from protich/issue/queue-columns

Queue Columns
parents 693a09ab 7ce83498
Branches
Tags
No related merge requests found
...@@ -723,7 +723,7 @@ class CustomQueue extends VerySimpleModel { ...@@ -723,7 +723,7 @@ class CustomQueue extends VerySimpleModel {
"bits" => QueueColumn::FLAG_SORTABLE, "bits" => QueueColumn::FLAG_SORTABLE,
)), )),
QueueColumn::placeholder(array( QueueColumn::placeholder(array(
"id" => 6, "id" => 8,
"heading" => "Assignee", "heading" => "Assignee",
"primary" => 'assignee', "primary" => 'assignee',
"width" => 100, "width" => 100,
...@@ -1229,7 +1229,7 @@ class CustomQueue extends VerySimpleModel { ...@@ -1229,7 +1229,7 @@ class CustomQueue extends VerySimpleModel {
$this->path = $this->buildPath(); $this->path = $this->buildPath();
$this->setFlag(self::FLAG_INHERIT_CRITERIA, $this->parent_id); $this->setFlag(self::FLAG_INHERIT_CRITERIA, $this->parent_id);
$this->setFlag(self::FLAG_INHERIT_COLUMNS, $this->setFlag(self::FLAG_INHERIT_COLUMNS,
isset($vars['inherit-columns'])); $this->parent_id > 0 && isset($vars['inherit-columns']));
$this->setFlag(self::FLAG_INHERIT_EXPORT, $this->setFlag(self::FLAG_INHERIT_EXPORT,
$this->parent_id > 0 && isset($vars['inherit-exports'])); $this->parent_id > 0 && isset($vars['inherit-exports']));
$this->setFlag(self::FLAG_INHERIT_SORTING, $this->setFlag(self::FLAG_INHERIT_SORTING,
......
...@@ -29,7 +29,8 @@ if ($queue->parent) { ?> ...@@ -29,7 +29,8 @@ if ($queue->parent) { ?>
</tr> </tr>
</tbody> </tbody>
<?php } <?php }
$hidden_cols = $queue->inheritColumns() || $queue->useStandardColumns(); $hidden_cols = $queue->inheritColumns() || ($queue->useStandardColumns() &&
$queue->parent_id);
?> ?>
<tbody class="if-not-inherited <?php if ($hidden_cols) echo 'hidden'; ?>"> <tbody class="if-not-inherited <?php if ($hidden_cols) echo 'hidden'; ?>">
<tr class="header"> <tr class="header">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment