allow empty selection for tax form group component

This commit is contained in:
Hendrik Hagendorn 2023-03-15 17:37:14 +01:00
parent 3b1f8c93ff
commit 32dc5b2913

View File

@ -47,7 +47,7 @@ class Tax extends Form
}
}
if (empty($this->selected)) {
if (empty($this->selected) && empty($this->getParentData('model'))) {
$this->selected = setting('default.tax');
}