Clear relation fields when unlinking a relation
This commit is contained in:
parent
b51428f585
commit
d104d47911
|
|
@ -1331,7 +1331,11 @@ class RelationController extends ControllerBehavior
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Reinitialise the form with a blank model
|
||||||
|
$this->initRelation($this->model);
|
||||||
|
|
||||||
$this->viewWidget->setFormValues([]);
|
$this->viewWidget->setFormValues([]);
|
||||||
|
$this->viewModel = $this->relationModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->relationRefresh();
|
return $this->relationRefresh();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue