mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Support creating inline vendors and categories
This commit is contained in:
parent
25c89d11f9
commit
59b107fc66
@ -95,6 +95,10 @@ class EntityModel extends Eloquent
|
|||||||
*/
|
*/
|
||||||
public static function getPrivateId($publicId)
|
public static function getPrivateId($publicId)
|
||||||
{
|
{
|
||||||
|
if (! $publicId) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$className = get_called_class();
|
$className = get_called_class();
|
||||||
|
|
||||||
return $className::scope($publicId)->withTrashed()->value('id');
|
return $className::scope($publicId)->withTrashed()->value('id');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user