Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Nov 28, 2016
1 parent d93a3c6 commit a30db66
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions inc/container.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function prepareInputForAdd($input) {
}
}
}

$input['itemtypes'] = (isset($input['itemtypes'])) ? json_encode($input['itemtypes'], TRUE): NULL ;

return $input;
Expand Down Expand Up @@ -414,9 +414,9 @@ public function showForm($ID, $options=array()) {
echo $types[$this->fields["type"]];
} else {
Dropdown::showFromArray('type',
self::getTypes(),
self::getTypes(),
array('value' => $this->fields["type"],
'rand' => $rand));
'rand' => $rand));
$params = array('type' => '__VALUE__',
'itemtype' => $this->fields["itemtypes"],
'subtype' => $this->fields['subtype'],
Expand Down Expand Up @@ -689,8 +689,8 @@ function getTabNameForItem(CommonGLPI $item, $withtemplate=0) {
}
if( in_array( $item->fields['entities_id'], $entities ) ) {
$tabs_entries[$tab_name] = $tab_label;
}
}
}
}
}
}
return $tabs_entries;
Expand Down Expand Up @@ -1015,7 +1015,7 @@ static function preItemUpdate(CommonDBTM $item) {
if( !in_array( $item->fields['entities_id'], $entities ) ) {
return false ;
}

//find fields associated to found container
$field_obj = new PluginFieldsField();
$fields = $field_obj->find("plugin_fields_containers_id = $c_id AND type != 'header'", "ranking");
Expand Down

0 comments on commit a30db66

Please sign in to comment.