1
0
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:
David Bomba 2024-07-19 10:51:52 +10:00
parent ed0404e227
commit bf00219bbe

View File

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