mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for importsa
This commit is contained in:
parent
aa206cb406
commit
15a1c6fab9
@ -126,7 +126,7 @@ class ImportController extends Controller
|
||||
|
||||
private function getEntityMap($entity_type)
|
||||
{
|
||||
return sprintf('App\\Import\\Definitions\%sMap', ucfirst($entity_type));
|
||||
return sprintf('App\\Import\\Definitions\%sMap', ucfirst(Str::camel($entity_type)));
|
||||
}
|
||||
|
||||
private function getCsvData($csvfile)
|
||||
|
@ -14,6 +14,7 @@ namespace App\Http\Requests\User;
|
||||
use App\Http\Requests\Request;
|
||||
use App\Http\ValidationRules\UniqueUserRule;
|
||||
use App\Http\ValidationRules\User\HasValidPhoneNumber;
|
||||
use App\Utils\Ninja;
|
||||
|
||||
class UpdateUserRequest extends Request
|
||||
{
|
||||
@ -64,7 +65,7 @@ class UpdateUserRequest extends Request
|
||||
$input['last_name'] = strip_tags($input['last_name']);
|
||||
}
|
||||
|
||||
if(strlen($input['phone']) > 1 && ($this->user->phone != $input['phone']))
|
||||
if(array_key_exists('phone', $input) && strlen($input['phone']) > 1 && ($this->user->phone != $input['phone']))
|
||||
$this->phone_has_changed = true;
|
||||
|
||||
$this->replace($input);
|
||||
|
Loading…
x
Reference in New Issue
Block a user