-
Incident report
-
Resolution: Won't fix
-
Minor
-
None
-
1.8.3, 1.8.4
When trying to add a graph to a screen, only hosts are displayed.
In 1.8.2 and before, i could add a graph from a template
diff -ru zabbix-1.8.2/frontends/php/include/screens.inc.php zabbix-1.8.3/frontends/php/include/screens.inc.php
shows a change in function get_screen_item_form(), the argument real_hosts=1 was added
The fix might be to replace real_hosts=1 with real_hosts=0
graph:
- $selectbtn = new CButton('select',S_SELECT,"javascript: return PopUp('popup.php?writeonly=1&dstfrm=".$form->getName()."&dstfld1=resource
id&dstfld2=caption&srctbl=graphs&srcfld1=graphid&srcfld2=name',800,450);");
+ $selectbtn = new CButton('select',S_SELECT,"javascript: return PopUp('popup.php?writeonly=1&dstfrm=".$form->getName()."&real_hosts=1&dsttfld1=resourceid&dstfld2=caption&srctbl=graphs&srcfld1=graphid&srcfld2=name',800,450);");
simple graph:
- $selectbtn = new Cbutton('select',S_SELECT,"javascript: return PopUp('popup.php?writeonly=1&dstfrm=".$form->getName()."&dstfld1=resource
id&dstfld2=caption&srctbl=simple_graph&srcfld1=itemid&srcfld2=description',800,450);");
+ $selectbtn = new Cbutton('select',S_SELECT,"javascript: return PopUp('popup.php?writeonly=1&real_hosts=1&dstfrm=".$form->getName()."&dst
fld1=resourceid&dstfld2=caption&srctbl=simple_graph&srcfld1=itemid&srcfld2=description',800,450);");