mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add required fields for contact information
This commit is contained in:
parent
eee467dabb
commit
53c69189f7
@ -147,6 +147,13 @@ class RequiredClientInfo extends Component
|
||||
|
||||
public function mount()
|
||||
{
|
||||
$this->fields = [
|
||||
['name' => 'contact_first_name', 'label' => ctrans('texts.first_name'), 'type' => 'text', 'validation' => 'required'],
|
||||
['name' => 'contact_last_name', 'label' => ctrans('texts.last_name'), 'type' => 'text', 'validation' => 'required'],
|
||||
['name' => 'contact_email', 'label' => ctrans('texts.email'), 'type' => 'text', 'validation' => 'required,email:rfc'],
|
||||
...$this->fields
|
||||
];
|
||||
|
||||
MultiDB::setDb($this->company->db);
|
||||
|
||||
$this->client = $this->contact->client;
|
||||
|
Loading…
x
Reference in New Issue
Block a user