mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge fixes
This commit is contained in:
parent
30397bb0fa
commit
52ece5de9f
@ -39,7 +39,7 @@ class LookupUser extends LookupModel
|
||||
->firstOrFail();
|
||||
|
||||
$lookupUser->email = $user->email;
|
||||
$lookupUser->confirmation_code = $user->confirmation_code;
|
||||
$lookupUser->confirmation_code = $user->confirmation_code ?: null;
|
||||
$lookupUser->oauth_user_key = ($user->oauth_provider_id && $user->oauth_user_id) ? ($user->oauth_provider_id . '-' . $user->oauth_user_id) : null;
|
||||
$lookupUser->referral_code = $user->referral_code;
|
||||
$lookupUser->save();
|
||||
|
@ -117,12 +117,14 @@
|
||||
try {
|
||||
return getPDFString(refreshPDFCB, force);
|
||||
} catch (exception) {
|
||||
console.warn('Failed to generate PDF');
|
||||
console.warn('Failed to generate PDF: %s', exception.message);
|
||||
var href = location.href;
|
||||
if (href.indexOf('/view/') > 0 && href.indexOf('phantomjs') == -1) {
|
||||
var url = href.replace('/view/', '/download/') + '?base64=true';
|
||||
$.get(url, function(result) {
|
||||
if (result && result.indexOf('data:application/pdf') == 0) {
|
||||
refreshPDFCB(result);
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -202,7 +202,7 @@
|
||||
<p> <br/> </p>
|
||||
@endif
|
||||
|
||||
@if ($accountGateway->isGateway(GATEWAY_WEPAY) && $account->token_billing_type_id === TOKEN_BILLING_DISABLED)
|
||||
@if ($accountGateway->isGateway(GATEWAY_WEPAY) && $account->token_billing_type_id == TOKEN_BILLING_DISABLED)
|
||||
{{--- do nothing ---}}
|
||||
@else
|
||||
<div class="row">
|
||||
|
Loading…
x
Reference in New Issue
Block a user