mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 10:56:46 -04:00
Add beginning of a project management system to placeholders
This commit is contained in:
parent
e56de4b19d
commit
adfe07aad9
42 changed files with 717 additions and 118 deletions
|
@ -39,6 +39,18 @@ if($verbose){
|
|||
|
||||
try{
|
||||
$ebook->CreateOrUpdate();
|
||||
|
||||
// If there was an `EbookPlaceholder` for this ebook, delete it.
|
||||
if($ebook->EbookPlaceholder !== null){
|
||||
$ebook->EbookPlaceholder->Delete();
|
||||
}
|
||||
|
||||
// If there was a `Project` for this ebook, mark it as completed.
|
||||
if($ebook->ProjectInProgress !== null){
|
||||
$ebook->ProjectInProgress->Status = Enums\ProjectStatusType::Completed;
|
||||
$ebook->ProjectInProgress->Ended = NOW;
|
||||
$ebook->ProjectInProgress->Save();
|
||||
}
|
||||
}
|
||||
catch(Exceptions\ValidationException $validationException){
|
||||
$exceptions = $validationException->Exceptions;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue