IcingaCommandArgumentForm: fix exception

This commit is contained in:
Thomas Gelf 2016-03-22 20:04:02 +01:00
parent ca6a9677bc
commit 1fb6027109

View File

@ -106,7 +106,7 @@ class IcingaCommandArgumentForm extends DirectorObjectForm
public function onSuccess() public function onSuccess()
{ {
$object = $this->object(); $object = $this->object();
$cmd = $this->commandObject(); $cmd = $this->commandObject;
if ($object->hasBeenModified()) { if ($object->hasBeenModified()) {
$cmd->arguments()->set( $cmd->arguments()->set(
$object->argument_name, $object->argument_name,