mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
SyncPropertyForm: explicit ID handling
This commit is contained in:
parent
93cbd4f020
commit
9390a3b9ca
@ -368,10 +368,11 @@ class SyncPropertyForm extends DirectorObjectForm
|
|||||||
{
|
{
|
||||||
if ($this->importSource === null) {
|
if ($this->importSource === null) {
|
||||||
if ($this->hasObject()) {
|
if ($this->hasObject()) {
|
||||||
$this->importSource = ImportSource::load($this->object->get('source_id'), $this->db);
|
$id = (int) $this->object->get('source_id');
|
||||||
} else {
|
} else {
|
||||||
$this->importSource = ImportSource::load($this->getSentValue('source_id'), $this->db);
|
$id = (int) $this->getSentValue('source_id');
|
||||||
}
|
}
|
||||||
|
$this->importSource = ImportSource::loadWithAutoIncId($id, $this->db);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->importSource;
|
return $this->importSource;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user