1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixers for passphrase logic

This commit is contained in:
David Bomba 2023-05-16 17:52:53 +10:00
parent a66c9cc046
commit 22d6d31399

View File

@ -83,6 +83,10 @@ class UpdateCompanyRequest extends Request
$input['settings'] = (array)$this->filterSaveableSettings($input['settings']); $input['settings'] = (array)$this->filterSaveableSettings($input['settings']);
} }
if(array_key_exists('e_invoice_certificate_passphrase', $input) && empty($input['e_invoice_certificate_passphrase'])) {
unset($input['e_invoice_certificate_passphrase']);
}
$this->replace($input); $this->replace($input);
} }