1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Fixes for editing an archived gateway

This commit is contained in:
David Bomba 2022-08-12 09:38:48 +10:00
parent b35cb2be35
commit c0d781daa6

View File

@ -413,8 +413,9 @@ class CompanyGateway extends BaseModel
public function resolveRouteBinding($value, $field = null)
{
return $this
->where('id', $this->decodePrimaryKey($value))->firstOrFail();
->where('id', $this->decodePrimaryKey($value))->withTrashed()->firstOrFail();
}