mirror of
https://github.com/standardebooks/web.git
synced 2025-07-16 03:16:36 -04:00
When adding an ebook placeholder, don't incremenet the series number if it was empty
This commit is contained in:
parent
affe29e83c
commit
047a76b788
1 changed files with 3 additions and 1 deletions
|
@ -37,9 +37,11 @@ try{
|
|||
$ebook->EbookPlaceholder->IsInProgress = false;
|
||||
}
|
||||
foreach($ebook->CollectionMemberships as $collectionMembership){
|
||||
if($collectionMembership->SequenceNumber !== null){
|
||||
$collectionMembership->SequenceNumber++;
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
$ebook = null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue