Module: nagvis Branch: master Commit: 53f21f1a7480f4e9722156e57992aae3eca572fe URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=53f21f1a7480f4e9722156e57992aae3eca572fe
Author: Lars Michelsen <[email protected]> Date: Tue May 25 18:51:57 2010 +0200 #294 Selecting service_description of a cloned service now --- share/server/core/classes/WuiViewMapAddModify.php | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/share/server/core/classes/WuiViewMapAddModify.php b/share/server/core/classes/WuiViewMapAddModify.php index cd8e1e6..94f5653 100644 --- a/share/server/core/classes/WuiViewMapAddModify.php +++ b/share/server/core/classes/WuiViewMapAddModify.php @@ -131,6 +131,17 @@ class WuiViewMapAddModify { if($val !== false) { $ret .= 'document.addmodify.elements[\''.$key.'\'].value=\''.$val.'\';'; $ret .= 'toggleDefaultOption(\''.$key.'\');'; + + if($this->aOpts['type'] == 'service' && $key == 'host_name') { + // Params: backend_id, type, host_name, field, selected + $ret .= "getServices(". + "'".$this->MAPCFG->getValue($this->aOpts['type'], $this->aOpts['clone'], 'backend_id')."',". + "'".$this->aOpts['type']."',". + "'".$this->MAPCFG->getValue($this->aOpts['type'], $this->aOpts['clone'], 'host_name', true)."',". + "'service_description',". + "'".$this->MAPCFG->getValue($this->aOpts['type'], $this->aOpts['id'], 'service_description', true)."'". + ");"; + } } } } ------------------------------------------------------------------------------ _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
