mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 10:02:02 -04:00
Mark placeholders as in progress when a new project is added
This commit is contained in:
parent
8e8cbb0c5e
commit
b6da6c83a4
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ try{
|
|||
if(!isset($project->EbookId)){
|
||||
$project->Ebook = new Ebook();
|
||||
$project->Ebook->FillFromEbookPlaceholderForm();
|
||||
if($project->Status == Enums\ProjectStatusType::InProgress || $project->Status == Enums\ProjectStatusType::Stalled){
|
||||
$project->Ebook->EbookPlaceholder->IsInProgress = true;
|
||||
}
|
||||
$project->Ebook->Validate();
|
||||
|
||||
$project->Validate(true, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue