1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Minor updates

This commit is contained in:
David Bomba 2023-11-22 15:11:08 +11:00
parent 8d2ccbbf46
commit 3ce403ad73
2 changed files with 3 additions and 3 deletions

View File

@ -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') &&

View File

@ -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/>';
}