IcingaCommandArgumentForm: use 304 for REST API...

...and not for "normal" requests

fixes #1512
This commit is contained in:
Thomas Gelf 2018-06-05 10:29:34 +02:00
parent 3c0d48068f
commit ee230cb865
2 changed files with 5 additions and 1 deletions

View File

@ -164,7 +164,9 @@ class IcingaCommandArgumentForm extends DirectorObjectForm
);
$cmd->store($this->db);
} else {
$this->setHttpResponseCode(304);
if ($this->isApiRequest()) {
$this->setHttpResponseCode(304);
}
$msg = $this->translate('No action taken, object has not been modified');
}
$this->setSuccessUrl(

View File

@ -38,6 +38,8 @@ before switching to a new version.
* FIX: Do not allow to delete Commands being used by other objects (#1443)
* FIX: Show 'Inspect' tab only for Endpoints with an ApiUser (#1293)
* FIX: It's now possible to specify TimePeriods for single Users #944
* FIX: Redirect after not modifying a Command Argument failed on some RHEL 7
setups (#1512)
### CLI
* FEATURE: Director Health Check Plugin (#1278)