"Fossies" - the Fresh Open Source Software Archive  

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

certificate.class.php  (glpi-9.3.3.tgz):certificate.class.php  (glpi-9.4.0.tgz)
skipping to change at line 220 skipping to change at line 220
'datatype' => 'dropdown', 'datatype' => 'dropdown',
'right' => 'own_ticket' 'right' => 'own_ticket'
]; ];
$tab[] = [ $tab[] = [
'id' => '31', 'id' => '31',
'table' => 'glpi_states', 'table' => 'glpi_states',
'field' => 'completename', 'field' => 'completename',
'name' => __('Status'), 'name' => __('Status'),
'datatype' => 'dropdown', 'datatype' => 'dropdown',
'condition' => '`is_visible_certificate`' 'condition' => ['is_visible_certificate' => 1]
]; ];
$tab[] = [ $tab[] = [
'id' => '49', 'id' => '49',
'table' => 'glpi_groups', 'table' => 'glpi_groups',
'field' => 'completename', 'field' => 'completename',
'linkfield' => 'groups_id_tech', 'linkfield' => 'groups_id_tech',
'name' => __('Group in charge of the hardware'), 'name' => __('Group in charge of the hardware'),
'condition' => '`is_assign`', 'condition' => ['is_assign' => 1],
'datatype' => 'dropdown' 'datatype' => 'dropdown'
]; ];
$tab[] = [ $tab[] = [
'id' => '70', 'id' => '70',
'table' => 'glpi_users', 'table' => 'glpi_users',
'field' => 'name', 'field' => 'name',
'name' => __('User'), 'name' => __('User'),
'datatype' => 'dropdown', 'datatype' => 'dropdown',
'right' => 'all' 'right' => 'all'
]; ];
$tab[] = [ $tab[] = [
'id' => '71', 'id' => '71',
'table' => 'glpi_groups', 'table' => 'glpi_groups',
'field' => 'completename', 'field' => 'completename',
'name' => __('Group'), 'name' => __('Group'),
'condition' => '`is_itemgroup`', 'condition' => ['is_itemgroup' => 1],
'datatype' => 'dropdown' 'datatype' => 'dropdown'
]; ];
$tab[] = [ $tab[] = [
'id' => '72', 'id' => '72',
'table' => 'glpi_certificates_items', 'table' => 'glpi_certificates_items',
'field' => 'id', 'field' => 'id',
'name' => _x('quantity', 'Number of associated items'), 'name' => _x('quantity', 'Number of associated items'),
'forcegroupby' => true, 'forcegroupby' => true,
'usehaving' => true, 'usehaving' => true,
skipping to change at line 379 skipping to change at line 379
"</td>"; "</td>";
echo "<td>"; echo "<td>";
$objectName = autoName($this->fields["name"], "name", $objectName = autoName($this->fields["name"], "name",
(isset($options['withtemplate']) (isset($options['withtemplate'])
&& ( $options['withtemplate']== 2)), && ( $options['withtemplate']== 2)),
$this->getType(), $this->fields["entities_id"]); $this->getType(), $this->fields["entities_id"]);
Html::autocompletionTextField($this, 'name', ['value' => $objectName]); Html::autocompletionTextField($this, 'name', ['value' => $objectName]);
echo "</td>"; echo "</td>";
echo "<td>".__('Status')."</td>"; echo "<td>".__('Status')."</td>";
echo "<td>"; echo "<td>";
State::dropdown(['value' => $this->fields["states_id"], State::dropdown([
'entity' => $this->fields["entities_id"], 'value' => $this->fields["states_id"],
'condition' => "`is_visible_certificate`"]); 'entity' => $this->fields["entities_id"],
'condition' => ['is_visible_certificate' => 1]
]);
echo "</td></tr>\n"; echo "</td></tr>\n";
echo "<tr class='tab_bg_1'>"; echo "<tr class='tab_bg_1'>";
echo "<td>".__('Location')."</td>"; echo "<td>".__('Location')."</td>";
echo "<td>"; echo "<td>";
Location::dropdown(['value' => $this->fields["locations_id"], Location::dropdown(['value' => $this->fields["locations_id"],
'entity' => $this->fields["entities_id"]]); 'entity' => $this->fields["entities_id"]]);
echo "</td>"; echo "</td>";
echo "<td>".__('Type')."</td>"; echo "<td>".__('Type')."</td>";
echo "<td>"; echo "<td>";
skipping to change at line 429 skipping to change at line 431
echo "<td>"; echo "<td>";
$objectName = autoName($this->fields["otherserial"], "otherserial", $objectName = autoName($this->fields["otherserial"], "otherserial",
(isset($options['withtemplate']) && ($options['with template'] == 2)), (isset($options['withtemplate']) && ($options['with template'] == 2)),
$this->getType(), $this->fields["entities_id"]); $this->getType(), $this->fields["entities_id"]);
Html::autocompletionTextField($this, 'otherserial', ['value' => $objectNam e]); Html::autocompletionTextField($this, 'otherserial', ['value' => $objectNam e]);
echo "</td></tr>\n"; echo "</td></tr>\n";
echo "<tr class='tab_bg_1'>"; echo "<tr class='tab_bg_1'>";
echo "<td>".__('Group in charge of the hardware')."</td>"; echo "<td>".__('Group in charge of the hardware')."</td>";
echo "<td>"; echo "<td>";
Group::dropdown(['name' => 'groups_id_tech', Group::dropdown([
'value' => $this->fields['groups_id_tech'], 'name' => 'groups_id_tech',
'entity' => $this->fields['entities_id'], 'value' => $this->fields['groups_id_tech'],
'condition' => '`is_assign`']); 'entity' => $this->fields['entities_id'],
'condition' => ['is_assign' => 1]
]);
echo "</td><td colspan='2'></td></tr>\n"; echo "</td><td colspan='2'></td></tr>\n";
echo "<tr class='tab_bg_1'>"; echo "<tr class='tab_bg_1'>";
echo "<td>".__('User')."</td>"; echo "<td>".__('User')."</td>";
echo "<td>"; echo "<td>";
User::dropdown(['value' => $this->fields["users_id"], User::dropdown(['value' => $this->fields["users_id"],
'entity' => $this->fields["entities_id"], 'entity' => $this->fields["entities_id"],
'right' => 'all']); 'right' => 'all']);
echo "</td>"; echo "</td>";
echo "<td>".__('Group')."</td>"; echo "<td>".__('Group')."</td>";
echo "<td>"; echo "<td>";
Group::dropdown(['value' => $this->fields["groups_id"], Group::dropdown([
'entity' => $this->fields["entities_id"], 'value' => $this->fields["groups_id"],
'condition' => '`is_itemgroup`']); 'entity' => $this->fields["entities_id"],
'condition' => ['is_itemgroup' => 1]
]);
echo "</td></tr>\n"; echo "</td></tr>\n";
echo "<tr class='tab_bg_1'>"; echo "<tr class='tab_bg_1'>";
echo "<td>".__('Alternate username number')."</td>"; echo "<td>".__('Alternate username number')."</td>";
echo "<td>"; echo "<td>";
Html::autocompletionTextField($this, "contact_num"); Html::autocompletionTextField($this, "contact_num");
echo "</td>"; echo "</td>";
echo "<td>".__('Alternate username')."</td>"; echo "<td>".__('Alternate username')."</td>";
echo "<td>"; echo "<td>";
 End of changes. 6 change blocks. 
13 lines changed or deleted 19 lines changed or added

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