diff --git a/library/Vspheredb/Monitoring/Rule/RuleForm.php b/library/Vspheredb/Monitoring/Rule/RuleForm.php index fa2506a9..3bdf44c2 100644 --- a/library/Vspheredb/Monitoring/Rule/RuleForm.php +++ b/library/Vspheredb/Monitoring/Rule/RuleForm.php @@ -170,7 +170,7 @@ protected function setInheritedValue($elementName, $value, $sourceName = null) } elseif ($optionValue === false) { $optionValue = 'n'; } - $element->getOption(null)->setContent( + $element->getOption('')->setContent( implode(',', $element->getOption($optionValue)->getContent()) . $suffix ); } elseif ($element instanceof TextElement || $element instanceof NumberElement) { diff --git a/library/Vspheredb/Web/Form/InfluxDbConnectionForm.php b/library/Vspheredb/Web/Form/InfluxDbConnectionForm.php index 0bd73e0d..b002f61c 100644 --- a/library/Vspheredb/Web/Form/InfluxDbConnectionForm.php +++ b/library/Vspheredb/Web/Form/InfluxDbConnectionForm.php @@ -178,7 +178,7 @@ protected function appendVersionInformation($apiVersion, $detectedVersion) } $element = $this->getElement('api_version'); assert($element instanceof SelectElement); - $autoOption = $element->getOption(null); + $autoOption = $element->getOption(''); $autoOption->setLabel(\sprintf( $this->translate('Autodetect: %s API, Version is %s'), $apiVersion,