mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 15:20:32 -04:00
Don't overwrite artwork status when editing an artwork
This commit is contained in:
parent
d6006528f2
commit
8e63a6c06b
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ try{
|
|||
$artwork->ArtworkId = $originalArtwork->ArtworkId;
|
||||
$artwork->Created = $originalArtwork->Created;
|
||||
$artwork->SubmitterUserId = $originalArtwork->SubmitterUserId;
|
||||
$artwork->Status = $originalArtwork->Status; // Overwrite any value got from POST because we need permission to change the status
|
||||
|
||||
$newStatus = ArtworkStatus::tryFrom(HttpInput::Str(POST, 'artwork-status') ?? '');
|
||||
if($newStatus !== null){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue