Skip to content

Commit

Permalink
Gave possibility to change object during pre_show
Browse files Browse the repository at this point in the history
  • Loading branch information
tomolimo authored Oct 6, 2016
1 parent 0ed6055 commit 5572548
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inc/ticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -6285,7 +6285,11 @@ function showTimeline($rand) {
}
Plugin::doHook('pre_show_item', array('item' => &$obj, 'options' => &$options));

$item_i = $item['item'];
if( is_array( $obj ) ){
$item_i = $obj['item'];
} else {
$item_i = $obj->fields;
}

$date = "";
if (isset($item_i['date'])) {
Expand Down

0 comments on commit 5572548

Please sign in to comment.