mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
DataTypeDatalist: fix typo
This commit is contained in:
parent
a80bdd833e
commit
3e80115692
@ -51,7 +51,7 @@ class DataTypeDatalist extends DataTypeHook
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($behavior === 'suggest_extend') {
|
if ($behavior === 'suggest_extend') {
|
||||||
$form->callOnSucess(function (DirectorForm $form) use ($name, $listId) {
|
$form->callOnSuccess(function (DirectorForm $form) use ($name, $listId) {
|
||||||
$value = (array) $form->getValue($name);
|
$value = (array) $form->getValue($name);
|
||||||
if ($value === null) {
|
if ($value === null) {
|
||||||
return;
|
return;
|
||||||
|
@ -481,7 +481,7 @@ abstract class QuickForm extends QuickBaseForm
|
|||||||
* @param callable $callable
|
* @param callable $callable
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function callOnSucess($callable)
|
public function callOnSuccess($callable)
|
||||||
{
|
{
|
||||||
if (! is_callable($callable)) {
|
if (! is_callable($callable)) {
|
||||||
throw new InvalidArgumentException(
|
throw new InvalidArgumentException(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user