Package: nagvis Version: 1:1.6.6+dfsg.1-2 Severity: important Tags: patch When trying to open the main configuration in the frontend the following PHP error pops up:
Error: (0) Array to string conversion ([...]/WuiViewEditMainCfg.php:126) The error was fixed upstream in 1.7 and 1.6 branches. Please see the attached upstream patch. Best Regards Markus Frosch Further links: http://www.monitoring-portal.org/wbb/index.php?page=Thread&threadID=25901 http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=61a951c3c0a333a27a26612bcc8a5f380eaf05e9 -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages nagvis depends on: ii check-mk-livestatus 1.1.12p7-1 ii debconf [debconf-2.0] 1.5.46 ii graphviz 2.26.3-12 ii libapache2-mod-php5 5.4.4-10 ii php-gettext 1.0.11-1 ii php-net-socket 1.0.9-2 ii php5-common 5.4.4-10 ii php5-gd 5.4.4-10 ii php5-sqlite 5.4.4-10 ii ucf 3.0025+nmu3 nagvis recommends no packages. Versions of packages nagvis suggests: pn nagvis-demos <none> -- Configuration Files: /etc/nagvis/automaps/__automap.cfg changed [not included] -- debconf information excluded
X-Git-Url: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis%2Fnagvis;a=blobdiff_plain;f=share%2Fserver%2Fcore%2Fclasses%2FWuiViewEditMainCfg.php;h=ef07ce5e313827e6bf876274994d245fa3c989b5;hp=c9229214822830723336d83ef65b42030e66c710;hb=61a951c3c0a333a27a26612bcc8a5f380eaf05e9;hpb=4ebda570f316d6ec0650472c2f1f74930ec6c2bf diff --git a/share/server/core/classes/WuiViewEditMainCfg.php b/share/server/core/classes/WuiViewEditMainCfg.php index c922921..ef07ce5 100644 --- a/share/server/core/classes/WuiViewEditMainCfg.php +++ b/share/server/core/classes/WuiViewEditMainCfg.php @@ -56,7 +56,6 @@ class WuiViewEditMainCfg { * * @return Array Html * @author Lars Michelsen <l...@vertical-visions.de> - * FIXME: Recode to have all the HTML code in the template */ function getFields() { global $CORE; @@ -123,7 +122,9 @@ class WuiViewEditMainCfg { $ret .= '<td class="tdfield"></td>'; } else { $ret .= '<td class="tdfield">'; - $ret .= "<img style=\"cursor:help\" src=\"./images/help_icon.png\" onclick=\"javascript:alert('".l($propname)." (".l('defaultValue').": ".$arr[$propname]['default'].")')\" />"; + $default_str = is_array($arr[$propname]['default']) ? implode(',', $arr[$propname]['default']) : $arr[$propname]['default']; + $ret .= "<img style=\"cursor:help\" src=\"./images/help_icon.png\" " + ."onclick=\"javascript:alert('".l($propname)." (".l('defaultValue').": ".$default_str.")')\" />"; $ret .= '</td>'; } @@ -143,14 +144,6 @@ class WuiViewEditMainCfg { case 'headertemplate': $arrOpts = $CORE->getAvailableHeaderTemplates(); break; - case 'autoupdatefreq': - $arrOpts = Array(Array('value'=>'0','label'=>l('disabled')), - Array('value'=>'2','label'=>'2'), - Array('value'=>'5','label'=>'5'), - Array('value'=>'10','label'=>'10'), - Array('value'=>'25','label'=>'25'), - Array('value'=>'50','label'=>'50')); - break; } $ret .= '<select id="'.$cat.'_'.$propname.'" name="'.$cat.'_'.$propname.'" onBlur="validateMainConfigFieldValue(this, 0)">';