Skip to content

Commit

Permalink
Revert "Copy actionable plugin improvements from quakemap.org install…
Browse files Browse the repository at this point in the history
  • Loading branch information
jreyes33 committed Apr 26, 2016
1 parent 41341e4 commit 029542e
Show file tree
Hide file tree
Showing 11 changed files with 87 additions and 299 deletions.
17 changes: 4 additions & 13 deletions plugins/actionable/controllers/admin/actionable.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,28 +44,19 @@ public function index($page = 1)

if (strtolower($status) == 'action')
{
//$actionable_filter = 'actionable = 1 AND action_taken = 0';
//$this->params['actionable'] = 'i.id IN (SELECT DISTINCT incident_id FROM `'.Kohana::config('database.default.table_prefix').'actionable` WHERE actionable = 1 AND action_taken = 0)';
$actionable_filter = 'actionable = 1';
$this->params['actionable'] = 'i.id IN (SELECT DISTINCT incident_id FROM `'.Kohana::config('database.default.table_prefix').'actionable` WHERE actionable = 1)';
$actionable_filter = 'actionable = 1 AND action_taken = 0';
$this->params['actionable'] = 'i.id IN (SELECT DISTINCT incident_id FROM `'.Kohana::config('database.default.table_prefix').'actionable` WHERE actionable = 1 AND action_taken = 0)';
}
elseif (strtolower($status) == 'urgent')
{
//$actionable_filter = 'action_urgent = 1 AND action_taken = 0';
//$this->params['actionable'] = 'i.id IN (SELECT DISTINCT incident_id FROM `'.Kohana::config('database.default.table_prefix').'actionable` WHERE action_urgent = 1 AND action_taken = 0)';
$actionable_filter = 'action_urgent = 1';
$this->params['actionable'] = 'i.id IN (SELECT DISTINCT incident_id FROM `'.Kohana::config('database.default.table_prefix').'actionable` WHERE action_urgent = 1)';
$actionable_filter = 'actionable = 2 AND action_taken = 0';
$this->params['actionable'] = 'i.id IN (SELECT DISTINCT incident_id FROM `'.Kohana::config('database.default.table_prefix').'actionable` WHERE actionable = 2 AND action_taken = 0)';
}
elseif (strtolower($status) == 'taken')
{
$actionable_filter = 'action_taken = 1';
$this->params['actionable'] = 'i.id IN (SELECT DISTINCT incident_id FROM `'.Kohana::config('database.default.table_prefix').'actionable` WHERE action_taken = 1)';
}
elseif (strtolower($status) == 'closed')
{
$actionable_filter = 'action_closed = 1';
$this->params['actionable'] = 'i.id IN (SELECT DISTINCT incident_id FROM `'.Kohana::config('database.default.table_prefix').'actionable` WHERE action_closed = 1)';
}
elseif (strtolower($status) == 'na')
{
$actionable_filter = 'actionable = 0 AND action_taken = 0';
Expand Down
3 changes: 1 addition & 2 deletions plugins/actionable/css/actionable.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 029542e

Please sign in to comment.