mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Minor updates
This commit is contained in:
parent
8d2ccbbf46
commit
3ce403ad73
@ -137,9 +137,9 @@ class PreviewController extends BaseController
|
||||
*/
|
||||
public function show()
|
||||
{
|
||||
// if(request()->has('template')) {
|
||||
if(request()->has('template')) {
|
||||
return $this->template();
|
||||
// }
|
||||
}
|
||||
|
||||
if (request()->has('entity') &&
|
||||
request()->has('entity_id') &&
|
||||
|
@ -103,7 +103,7 @@ class ClientPresenter extends EntityPresenter
|
||||
if ($cityState = $this->getShippingCityState()) {
|
||||
$str .= e($cityState).'<br/>';
|
||||
}
|
||||
if ($country = $client->shipping_country) {
|
||||
if ($country = $client->shipping_country ?? $client->country) {
|
||||
$str .= e($country->name).'<br/>';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user