[ZBX-5869] Create graphics failed Created: 2012 Nov 18  Updated: 2017 May 30  Resolved: 2012 Dec 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.0.3
Fix Version/s: 2.0.5rc1, 2.1.0

Type: Incident report Priority: Blocker
Reporter: Maxim Parkhomenko Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: php, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Create graphic in Template or Host


Attachments: PNG File graphs.png    

 Description   

configuration.graph.edit.js.php
...
function getOnlyHostParam() {
var param = '';

jQuery(document).ready(function() {
if (<?php echo $this->data['is_template'] ? 'true' : 'false'; ?>)

{ >> param = '&only_hostid=' + '<?php echo $this->data['hostid']; ?>'; }

else

{ param = '&real_hosts=1'; }

});

return param;
}
...
String <?php echo $this->data['hostid']; ?> not quoted in original file and list of item is empty.



 Comments   
Comment by Eduards Samersovs (Inactive) [ 2012 Nov 24 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-5869

Comment by Alexey Fukalov [ 2012 Nov 26 ]

Could you please describe exact steps how to reproduce problem.

Comment by Eduards Samersovs (Inactive) [ 2012 Dec 10 ]

Fixed in versions pre-2.1.0 (beta) r32013, pre-2.0.5rc1 r32012

Comment by Pavels Jelisejevs (Inactive) [ 2012 Dec 11 ]

(1) This caused a regression: when I open a host's graph configuration page and press the create graph button, I get a bunch of errors and the navigation panel is empty. See the screenshot.

Eduards RESOLVED in ZBX-5699

Generated at Tue Apr 16 17:44:57 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.