1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Refactor RequiredClientInfo component to handle empty fields and source query parameter

This commit is contained in:
Benjamin Beganović 2024-03-14 15:57:50 +01:00
parent 21780c0e2f
commit 0c006d961b

View File

@ -165,6 +165,15 @@ class RequiredClientInfo extends Component
? $this->checkFields()
: $this->show_form = false;
if (count($this->fields) === 0) {
$this->show_form = false;
$this->dispatch(
'passed-required-fields-check',
client_postal_code: $this->contact->client->postal_code
);
}
if (request()->query('source') === 'subscriptions') {
$this->show_form = false;