"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "inc/notificationtargetprojecttask.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).

notificationtargetprojecttask.class.php  (glpi-9.3.3.tgz):notificationtargetprojecttask.class.php  (glpi-9.4.0.tgz)
skipping to change at line 384 skipping to change at line 384
= $ticket->getField('content'); = $ticket->getField('content');
$this->data['tickets'][] = $tmp; $this->data['tickets'][] = $tmp;
} }
} }
} }
$this->data['##projecttask.numberoftickets##'] = count($this->data['ticket s']); $this->data['##projecttask.numberoftickets##'] = count($this->data['ticket s']);
// Document // Document
$query = "SELECT `glpi_documents`.* $iterator = $DB->request([
FROM `glpi_documents` 'SELECT' => 'glpi_documents.*',
LEFT JOIN `glpi_documents_items` 'FROM' => 'glpi_documents',
ON (`glpi_documents`.`id` = `glpi_documents_items`.`documents_ 'LEFT JOIN' => [
id`) 'glpi_documents_items' => [
WHERE `glpi_documents_items`.`itemtype` = 'ProjectTask' 'ON' => [
AND `glpi_documents_items`.`items_id` = '".$item->getField 'glpi_documents_items' => 'documents_id',
('id')."'"; 'glpi_documents' => 'id'
]
]
],
'WHERE' => [
'glpi_documents_items.itemtype' => 'ProjectTask',
'glpi_documents_items.items_id' => $item->fields['id']
]
]);
$this->data["documents"] = []; $this->data["documents"] = [];
if ($result = $DB->query($query)) { while ($data = $iterator->next()) {
while ($data = $DB->fetch_assoc($result)) { $tmp = [];
$tmp = []; $tmp['##document.id##'] = $data['id'];
$tmp['##document.id##'] = $data['id']; $tmp['##document.name##'] = $data['name'];
$tmp['##document.name##'] = $data['name']; $tmp['##document.weblink##']
$tmp['##document.weblink##'] = $data['link'];
= $data['link'];
$tmp['##document.url##'] = $this->formatURL($options['additionnaloptio
$tmp['##document.url##'] = $this->formatURL($options['additionnalop n']['usertype'],
tion']['usertype'], "document_".$data['id']);
"document_".$data['id'] $downloadurl = "/front/document.send.php?docid=".$data['id
); '];
$downloadurl = "/front/document.send.php?docid=".$data[
'id']; $tmp['##document.downloadurl##']
= $this->formatURL($options['additionnalopti
$tmp['##document.downloadurl##'] on']['usertype'],
= $this->formatURL($options['additionnalop $downloadurl);
tion']['usertype'], $tmp['##document.heading##']
$downloadurl); = Dropdown::getDropdownName('glpi_documentca
$tmp['##document.heading##'] tegories',
= Dropdown::getDropdownName('glpi_document $data['documentca
categories', tegories_id']);
$data['documen
tcategories_id']);
$tmp['##document.filename##'] $tmp['##document.filename##']
= $data['filename']; = $data['filename'];
$this->data['documents'][] = $tmp; $this->data['documents'][] = $tmp;
}
} }
$this->data["##projecttask.urldocument##"] $this->data["##projecttask.urldocument##"]
= $this->formatURL($options['additionnaloption']['usertype' ], = $this->formatURL($options['additionnaloption']['usertype' ],
"ProjectTask_".$item->getField("id").'_D ocument_Item$1'); "ProjectTask_".$item->getField("id").'_D ocument_Item$1');
$this->data["##projecttask.numberofdocuments##"] $this->data["##projecttask.numberofdocuments##"]
= count($this->data['documents']); = count($this->data['documents']);
// Items infos // Items infos
skipping to change at line 568 skipping to change at line 576
'teammembers' => _n('Team member', 'Team members', Session:: getPluralNumber())]; 'teammembers' => _n('Team member', 'Team members', Session:: getPluralNumber())];
foreach ($tags as $tag => $label) { foreach ($tags as $tag => $label) {
$this->addTagToList(['tag' => $tag, $this->addTagToList(['tag' => $tag,
'label' => $label, 'label' => $label,
'value' => false, 'value' => false,
'foreach' => true]); 'foreach' => true]);
} }
asort($this->tag_descriptions); asort($this->tag_descriptions);
} }
/**
* Add team users to the notified user list
*
* @deprecated 9.2 Use NotificationTargetProjectTask::addTeamUsers()
*
* @return void
**/
function getTeamUsers() {
Toolbox::deprecated('getTeamUsers() method is deprecated');
$this->addTeamUsers();
}
/**
* Add team groups to the notified user list
*
* @param integer $manager 0 all users, 1 only supervisors, 2 all users witho
ut supervisors
*
* @deprecated 9.2 Use NotificationTargetProjectTask::addTeamGroups()
*
* @return void
**/
function getTeamGroups($manager) {
Toolbox::deprecated('getTeamGroups() method is deprecated');
$this->addTeamGroups($manager);
}
/**
* Add team contacts to the notified user list
*
* @deprecated 9.2 Use NotificationTargetProjectTask::addTeamContacts()
*
* @return void
**/
function getTeamContacts() {
Toolbox::deprecated('getTeamContacts() method is deprecated');
$this->addTeamContacts();
}
/**
* Add team suppliers to the notified user list
*
* @deprecated 9.2 Use NotificationTargetProjectTask::addTeamSuppliers()
*
* @return void
**/
function getTeamSuppliers() {
Toolbox::deprecated('getTeamSuppliers() method is deprecated');
$this->addTeamSuppliers();
}
} }
 End of changes. 5 change blocks. 
87 lines changed or deleted 41 lines changed or added

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