Skip to content

Commit

Permalink
Button logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Lose committed Nov 15, 2014
1 parent 069de6c commit f368495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/cms/html/jgrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public static function published($value, $i, $prefix = '', $enabled = true, $che
$states = array(1 => array('unpublish', 'JPUBLISHED', 'JLIB_HTML_UNPUBLISH_ITEM', 'JPUBLISHED', true, 'publish', 'publish'),
0 => array('publish', 'JUNPUBLISHED', 'JLIB_HTML_PUBLISH_ITEM', 'JUNPUBLISHED', true, 'unpublish', 'unpublish'),
2 => array('unpublish', 'JARCHIVED', 'JLIB_HTML_UNPUBLISH_ITEM', 'JARCHIVED', true, 'archive', 'archive'),
-2 => array('publish', 'JTRASHED', 'JLIB_HTML_PUBLISH_ITEM', 'JTRASHED', true, 'trash', 'trash'));
-2 => array('publish', 'JTRASHED', 'JLIB_HTML_PUBLISH_ITEM', 'JTRASHED', true, 'undo', 'undo'));

// Special state for dates
if ($publish_up || $publish_down)
Expand Down

0 comments on commit f368495

Please sign in to comment.