Skip to content

Instantly share code, notes, and snippets.

@rzhw
Created July 12, 2010 02:22
Show Gist options
  • Save rzhw/472051 to your computer and use it in GitHub Desktop.
Save rzhw/472051 to your computer and use it in GitHub Desktop.
$statuses = array(
'open' => array(
'id' => 1,
'name' => 'Open',
'type' => 'open',
'filteronly' => false,
'sql' => 'issues.status = 0'
),
'unassigned' => array(
'id' => -1,
'name' => 'Unassigned',
'type' => 'open',
'sql' => 'issues.assign = 0'
),
'assigned' => array(
'id' => -1,
'name' => 'Assigned',
'type' => 'open',
'filteronly' => true,
'sql' => 'issues.assign != 0'
),
'resolved' => array(
'id' => 3,
'name' => 'Resolved',
'type' => 'resolved',
'sql' => 'issues.status = 3'
),
'postponed' => array(
'id' => 4,
'name' => 'Resolved',
'type' => 'resolved',
'sql' => 'issues.status = 4'
),
'duplicate' => array(
'id' => 5,
'name' => 'Duplicate',
'type' => 'duplicate',
'sql' => 'issues.status = 5'
),
'declined' => array(
'id' => 6,
'name' => 'Declined',
'type' => 'declined',
'sql' => 'issues.status = 6'
),
'all' => array(
'id' => -1,
'name' => 'All',
'type' => 'all',
'sql' => '1' // This seems to be okay, see http://stackoverflow.com/questions/1983655
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment