Merge pull request #2939 from novag/tax-component
allow empty selection for tax form group component
This commit is contained in:
commit
5e202dd6f4
@ -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');
|
$this->selected = setting('default.tax');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user