mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Bug fixes
This commit is contained in:
parent
db3a6abad3
commit
b99427b05c
@ -500,7 +500,7 @@ class AccountController extends \BaseController {
|
||||
}
|
||||
else
|
||||
{
|
||||
$account = Account::findOrFail(Auth::user()->account_id);
|
||||
$account = Auth::user()->account;
|
||||
$account->name = trim(Input::get('name'));
|
||||
$account->work_email = trim(Input::get('work_email'));
|
||||
$account->work_phone = trim(Input::get('work_phone'));
|
||||
|
@ -17,11 +17,11 @@ class UserEventHandler
|
||||
|
||||
public function onLogin()
|
||||
{
|
||||
$account = Auth::user()->account;
|
||||
$account->last_login = Carbon::now()->toDateTimeString();
|
||||
$account->save();
|
||||
$account = Auth::user()->account;
|
||||
$account->last_login = Carbon::now()->toDateTimeString();
|
||||
$account->save();
|
||||
|
||||
Event::fire('user.refresh');
|
||||
Event::fire('user.refresh');
|
||||
}
|
||||
|
||||
public function onRefresh()
|
||||
|
@ -166,7 +166,7 @@ class Account extends Eloquent
|
||||
Session::put(SESSION_DATE_FORMAT, $this->date_format ? $this->date_format->format : DEFAULT_DATE_FORMAT);
|
||||
Session::put(SESSION_DATE_PICKER_FORMAT, $this->date_format ? $this->date_format->picker_format : DEFAULT_DATE_PICKER_FORMAT);
|
||||
Session::put(SESSION_DATETIME_FORMAT, $this->datetime_format ? $this->datetime_format->format : DEFAULT_DATETIME_FORMAT);
|
||||
Session::put(SESSION_CURRENCY, $this->currency_id ? $this->currency_id : DEFAULT_CURRENCY);
|
||||
Session::put(SESSION_CURRENCY, $this->currency_id ? $this->currency_id : DEFAULT_CURRENCY);
|
||||
}
|
||||
|
||||
public function getInvoiceLabels()
|
||||
|
0
public/apple-touch-icon.png
Normal file → Executable file
0
public/apple-touch-icon.png
Normal file → Executable file
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Loading…
x
Reference in New Issue
Block a user