mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Minor fixes when restoring designs
This commit is contained in:
parent
ed0404e227
commit
bf00219bbe
@ -11,6 +11,7 @@
|
||||
|
||||
namespace App\Repositories;
|
||||
|
||||
use App\Utils\Ninja;
|
||||
use App\Models\Design;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
@ -54,4 +55,20 @@ class DesignRepository extends BaseRepository
|
||||
|
||||
return $design;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $entity
|
||||
*/
|
||||
public function restore($design)
|
||||
{
|
||||
|
||||
$design->name = str_ireplace("_deleted_", "_restored_", $design->name);
|
||||
|
||||
parent::restore($design);
|
||||
|
||||
return $design;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user