mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 09:14:08 +02:00
RepositoryForm: Utilize setDefaults instead of populate now
refs #3010 refs #2998
This commit is contained in:
parent
ee7fa2c48c
commit
4cf577b1c8
@ -278,7 +278,7 @@ abstract class RepositoryForm extends Form
|
|||||||
{
|
{
|
||||||
$data = $this->getData();
|
$data = $this->getData();
|
||||||
if (! empty($data)) {
|
if (! empty($data)) {
|
||||||
$this->populate($data);
|
$this->setDefaults($data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -301,7 +301,7 @@ abstract class RepositoryForm extends Form
|
|||||||
$data = get_object_vars($row);
|
$data = get_object_vars($row);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->populate($data);
|
$this->setDefaults($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user