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…
Reference in New Issue