mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #6788 from turbo124/v5-develop
Minor fixes for requirements
This commit is contained in:
commit
be78eb069a
@ -561,15 +561,15 @@ class BaseDriver extends AbstractPaymentDriver
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->company_gateway->require_contact_name) {
|
||||
if ($this->checkRequiredResource($this->first_name)) {
|
||||
$this->required_fields[] = 'contact_first_name';
|
||||
}
|
||||
// if ($this->company_gateway->require_contact_name) {
|
||||
// if ($this->checkRequiredResource($this->first_name)) {
|
||||
// $this->required_fields[] = 'contact_first_name';
|
||||
// }
|
||||
|
||||
if ($this->checkRequiredResource($this->last_name)) {
|
||||
$this->required_fields[] = 'contact_last_name';
|
||||
}
|
||||
}
|
||||
// if ($this->checkRequiredResource($this->last_name)) {
|
||||
// $this->required_fields[] = 'contact_last_name';
|
||||
// }
|
||||
// }
|
||||
|
||||
if ($this->company_gateway->require_postal_code) {
|
||||
// In case "require_postal_code" is true, we don't need billing address.
|
||||
|
Loading…
x
Reference in New Issue
Block a user