Skip to content

Commit

Permalink
DowntimeQuery: Add _name suffix to the query column `downtime_author'
Browse files Browse the repository at this point in the history
...to indicate that it's a case-sensitive column.

refs #8613
  • Loading branch information
Johannes Meyer committed Apr 10, 2015
1 parent fda261b commit 1c32d8e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Expand Up @@ -270,7 +270,7 @@ public function downtimesAction()
'id' => 'downtime_internal_id',
'objecttype' => 'downtime_objecttype',
'comment' => 'downtime_comment',
'author' => 'downtime_author',
'author_name' => 'downtime_author_name',
'start' => 'downtime_start',
'scheduled_start' => 'downtime_scheduled_start',
'scheduled_end' => 'downtime_scheduled_end',
Expand Down
Expand Up @@ -64,7 +64,7 @@ use Icinga\Module\Monitoring\Object\Service;
<?= $this->link()->host($downtime->host_name, $downtime->host_display_name) ?>
<?php endif ?>
<br>
<?= $this->icon('comment', $this->translate('Comment')); ?> [<?= $this->escape($downtime->author) ?>] <?= $this->escape($downtime->comment) ?>
<?= $this->icon('comment', $this->translate('Comment')); ?> [<?= $this->escape($downtime->author_name) ?>] <?= $this->escape($downtime->comment) ?>
<br>
<small>
<?php if ($downtime->is_flexible): ?>
Expand Down
Expand Up @@ -58,7 +58,7 @@ foreach ($object->downtimes as $downtime) {

?>
<tr>
<th><?= $this->escape($downtime->author); ?></th>
<th><?= $this->escape($downtime->author_name); ?></th>
<td data-base-target="_self">
<?php if (isset($delDowntimeForm)) { // Form is unset if the current user lacks the respective permission
$delDowntimeForm = clone $delDowntimeForm;
Expand Down
Expand Up @@ -13,7 +13,7 @@ class DowntimeQuery extends IdoQuery
*/
protected $columnMap = array(
'downtime' => array(
'downtime_author' => 'sd.author_name',
'downtime_author_name' => 'sd.author_name',
'author' => 'sd.author_name',
'downtime_comment' => 'sd.comment_data',
'downtime_entry_time' => 'UNIX_TIMESTAMP(sd.entry_time)',
Expand Down
Expand Up @@ -14,7 +14,7 @@ public function getColumns()
{
return array(
'downtime_objecttype',
'downtime_author',
'downtime_author_name',
'author',
'downtime_comment',
'downtime_entry_time',
Expand Down
Expand Up @@ -276,7 +276,7 @@ public function fetchDowntimes()
'id' => 'downtime_internal_id',
'objecttype' => 'downtime_objecttype',
'comment' => 'downtime_comment',
'author' => 'downtime_author',
'author_name' => 'downtime_author_name',
'start' => 'downtime_start',
'scheduled_start' => 'downtime_scheduled_start',
'end' => 'downtime_end',
Expand Down

0 comments on commit 1c32d8e

Please sign in to comment.