"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "inc/notificationtargetproblem.class.php" between
glpi-9.3.3.tgz and glpi-9.4.0.tgz

About: GLPI is an IT and asset management software (Information Resource Manager).

notificationtargetproblem.class.php  (glpi-9.3.3.tgz):notificationtargetproblem.class.php  (glpi-9.4.0.tgz)
skipping to change at line 52 skipping to change at line 52
public $private_profiles = []; public $private_profiles = [];
/** /**
* Get events related to tickets * Get events related to tickets
**/ **/
function getEvents() { function getEvents() {
$events = ['new' => __('New problem'), $events = ['new' => __('New problem'),
'update' => __('Update of a problem'), 'update' => __('Update of a problem'),
'solved' => __('Problem solved'), 'solved' => __('Problem solved'),
'add_task' => __('New task'),
'update_task' => __('Update of a task'),
'delete_task' => __('Deletion of a task'),
'closed' => __('Closure of a problem'), 'closed' => __('Closure of a problem'),
'delete' => __('Deleting a problem')]; 'delete' => __('Deleting a problem')];
$events = array_merge($events, parent::getEvents()); $events = array_merge($events, parent::getEvents());
asort($events); asort($events);
return $events; return $events;
} }
function getDataForObject(CommonDBTM $item, array $options, $simple = false) { function getDataForObject(CommonDBTM $item, array $options, $simple = false) {
global $CFG_GLPI; global $CFG_GLPI;
skipping to change at line 186 skipping to change at line 183
$tmp['##item.model##'] = $item2->getField($modelfield); $tmp['##item.model##'] = $item2->getField($modelfield);
} }
$data['items'][] = $tmp; $data['items'][] = $tmp;
} }
} }
} }
} }
$data['##problem.numberofitems##'] = count($data['items']); $data['##problem.numberofitems##'] = count($data['items']);
} }
return $data; return $data;
} }
function getTags() { function getTags() {
parent::getTags(); parent::getTags();
//Locales //Locales
$tags = ['problem.numberoftickets' => _x('quantity', 'Number of tickets' ), $tags = ['problem.numberoftickets' => _x('quantity', 'Number of tickets' ),
 End of changes. 2 change blocks. 
4 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)