"Fossies" - the Fresh Open Source Software Archive  

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

link_itemtype.class.php  (glpi-9.3.3.tgz):link_itemtype.class.php  (glpi-9.4.0.tgz)
skipping to change at line 72 skipping to change at line 72
$links_id = $link->getField('id'); $links_id = $link->getField('id');
$canedit = $link->canEdit($links_id); $canedit = $link->canEdit($links_id);
$rand = mt_rand(); $rand = mt_rand();
if (!Link::canView() if (!Link::canView()
|| !$link->can($links_id, READ)) { || !$link->can($links_id, READ)) {
return false; return false;
} }
$query = "SELECT * $iterator = $DB->request([
FROM `glpi_links_itemtypes` 'FROM' => 'glpi_links_itemtypes',
WHERE `links_id` = '$links_id' 'WHERE' => ['links_id' => $links_id],
ORDER BY `itemtype`"; 'ORDER' => 'itemtype'
$result = $DB->query($query); ]);
$types = []; $types = [];
$used = []; $used = [];
if ($numrows = $DB->numrows($result)) { $numrows = count($iterator);
while ($data = $DB->fetch_assoc($result)) { while ($data = $iterator->next()) {
$types[$data['id']] = $data; $types[$data['id']] = $data;
$used[$data['itemtype']] = $data['itemtype']; $used[$data['itemtype']] = $data['itemtype'];
}
} }
if ($canedit) { if ($canedit) {
echo "<div class='firstbloc'>"; echo "<div class='firstbloc'>";
echo "<form name='changeticket_form$rand' id='changeticket_form$rand' m ethod='post' echo "<form name='changeticket_form$rand' id='changeticket_form$rand' m ethod='post'
action='".Toolbox::getItemTypeFormURL(__CLASS__)."'>"; action='".Toolbox::getItemTypeFormURL(__CLASS__)."'>";
echo "<table class='tab_cadre_fixe'>"; echo "<table class='tab_cadre_fixe'>";
echo "<tr class='tab_bg_2'><th colspan='2'>".__('Add an item type')."</ th></tr>"; echo "<tr class='tab_bg_2'><th colspan='2'>".__('Add an item type')."</ th></tr>";
 End of changes. 2 change blocks. 
10 lines changed or deleted 9 lines changed or added

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