Under "General Device Options", the option Location is a dropdown with a description reads that "The physical location of the Device. This free form text can be a room, rack location, etc.". This should be a text box, not a drop down menu (see attached image).
As such, in ~/include/global_form.php, I've commented out lines 1143 - 1152:
Code: Select all
// 'location' => array(
// 'method' => 'drop_callback',
// 'friendly_name' => __('Location'),
// 'description' => __('The physical location of the Device. This free form text can be a room, rack location, etc.'),
// 'none_value' => __('None'),
// 'sql' => 'SELECT DISTINCT location AS id, location AS name FROM host ORDER BY location',
// 'action' => 'ajax_locations',
// 'id' => '|arg1:location|',
// 'value' => '|arg1:location|',
// ),
Code: Select all
'location' => array(
'method' => 'textbox',
'friendly_name' => __('Location'),
'description' => __('The physical location of the Device. This free form text can be a room, rack location, etc.'),
'sql' => 'SELECT DISTINCT location AS id, location AS name FROM host ORDER BY location',
'value' => '|arg1:location|',
'max_length' => '250',
'size' => '60',
),
If I'm completely wrong about this setting, I'd appreciate if a developer would correct me. Otherwise, i'm hoping this makes it into the next update.
Thank you for making cacti!!