diff --git a/app/Models/Client.php b/app/Models/Client.php index fd0aa127682e..6d6dd0b4bc34 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -85,6 +85,10 @@ class Client extends EntityModel * @var string */ public static $fieldCountry = 'country'; + /** + * @var string + */ + public static $fieldWebsite = 'website'; /** * @return array @@ -101,6 +105,7 @@ class Client extends EntityModel Client::$fieldPostalCode, Client::$fieldCountry, Client::$fieldNotes, + Client::$fieldWebsite, Contact::$fieldFirstName, Contact::$fieldLastName, Contact::$fieldPhone, @@ -126,6 +131,7 @@ class Client extends EntityModel 'zip|postal|code' => 'postal_code', 'country' => 'country', 'note' => 'notes', + 'site|website' => 'website', ]; } diff --git a/app/Ninja/Import/CSV/ClientTransformer.php b/app/Ninja/Import/CSV/ClientTransformer.php index edab637b4367..b7707081e648 100644 --- a/app/Ninja/Import/CSV/ClientTransformer.php +++ b/app/Ninja/Import/CSV/ClientTransformer.php @@ -27,6 +27,7 @@ class ClientTransformer extends BaseTransformer 'state' => $this->getString($data, 'state'), 'postal_code' => $this->getString($data, 'postal_code'), 'private_notes' => $this->getString($data, 'notes'), + 'website' => $this->getString($data, 'website'), 'contacts' => [ [ 'first_name' => $this->getString($data, 'first_name'),