One of our technicians pointed out that if he created a pie graph. the 'show legend' option would never save.
Looks like the input field was renamed at some point and no longer matched the DB field.
Here's a patch:
Looks like the input field was renamed at some point and no longer matched the DB field.
Here's a patch:
Code:
diff -crB zabbix-1.8.2/htdocs/api/classes/class.cgraph.php zabbix-its/htdocs/api/classes/class.cgraph.php *** zabbix-1.8.2/htdocs/api/classes/class.cgraph.php Wed Oct 27 12:14:27 2010 --- zabbix-its/htdocs/api/classes/class.cgraph.php Wed Oct 27 12:13:41 2010 *************** *** 807,813 **** if(isset($graph['show_work_period'])) $values['show_work_period'] = $graph['show_work_period']; if(isset($graph['show_triggers'])) $values['show_triggers'] = $graph['show_triggers']; if(isset($graph['graphtype'])) $values['graphtype'] = $graph['graphtype']; ! if(isset($graph['show_legend'])) $values['show_legend'] = $graph['show_legend']; if(isset($graph['show_3d'])) $values['show_3d'] = $graph['show_3d']; if(isset($graph['percent_left'])) $values['percent_left'] = $graph['percent_left']; if(isset($graph['percent_right'])) $values['percent_right'] = $graph['percent_right']; --- 806,812 ---- if(isset($graph['show_work_period'])) $values['show_work_period'] = $graph['show_work_period']; if(isset($graph['show_triggers'])) $values['show_triggers'] = $graph['show_triggers']; if(isset($graph['graphtype'])) $values['graphtype'] = $graph['graphtype']; ! if(isset($graph['legend'])) $values['show_legend'] = $graph['legend']; if(isset($graph['show_3d'])) $values['show_3d'] = $graph['show_3d']; if(isset($graph['percent_left'])) $values['percent_left'] = $graph['percent_left']; if(isset($graph['percent_right'])) $values['percent_right'] = $graph['percent_right']; *************** *** 1275,1278 **** } } ! ?> \ No newline at end of file --- 1274,1277 ---- } } ! ?> Only in zabbix-its/htdocs/conf: zabbix.conf.php
Comment