mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 15:54:03 +02:00
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);
|
$cmd->store($this->db);
|
||||||
} else {
|
} else {
|
||||||
$this->setHttpResponseCode(304);
|
if ($this->isApiRequest()) {
|
||||||
|
$this->setHttpResponseCode(304);
|
||||||
|
}
|
||||||
$msg = $this->translate('No action taken, object has not been modified');
|
$msg = $this->translate('No action taken, object has not been modified');
|
||||||
}
|
}
|
||||||
$this->setSuccessUrl(
|
$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: Do not allow to delete Commands being used by other objects (#1443)
|
||||||
* FIX: Show 'Inspect' tab only for Endpoints with an ApiUser (#1293)
|
* FIX: Show 'Inspect' tab only for Endpoints with an ApiUser (#1293)
|
||||||
* FIX: It's now possible to specify TimePeriods for single Users #944
|
* 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
|
### CLI
|
||||||
* FEATURE: Director Health Check Plugin (#1278)
|
* FEATURE: Director Health Check Plugin (#1278)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user