IcingaCommandArgumentForm: use 304 for REST API...
...and not for "normal" requests fixes #1512
This commit is contained in:
parent
3c0d48068f
commit
ee230cb865
|
@ -164,7 +164,9 @@ class IcingaCommandArgumentForm extends DirectorObjectForm
|
|||
);
|
||||
$cmd->store($this->db);
|
||||
} else {
|
||||
if ($this->isApiRequest()) {
|
||||
$this->setHttpResponseCode(304);
|
||||
}
|
||||
$msg = $this->translate('No action taken, object has not been modified');
|
||||
}
|
||||
$this->setSuccessUrl(
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue