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