From 31d927ce2bd5bf725d68c9b48a3cb9f0529f635a Mon Sep 17 00:00:00 2001 From: Mike Colagrosso Date: Tue, 16 Jan 2024 20:50:06 -0700 Subject: [PATCH] Don't set the Updated field in the Artists table The DB does it automatically --- lib/Artwork.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/Artwork.php b/lib/Artwork.php index e8e80c11..f978e1c0 100644 --- a/lib/Artwork.php +++ b/lib/Artwork.php @@ -690,8 +690,6 @@ class Artwork extends PropertiesBase{ $this->Validate($uploadedFile); - $this->Updated = new DateTime(); - $tags = []; foreach($this->Tags as $artworkTag){ $tags[] = ArtworkTag::GetOrCreate($artworkTag); @@ -709,7 +707,6 @@ class Artwork extends PropertiesBase{ CompletedYear = ?, CompletedYearIsCirca = ?, Created = ?, - Updated = ?, Status = ?, SubmitterUserId = ?, ReviewerUserId = ?, @@ -726,7 +723,7 @@ class Artwork extends PropertiesBase{ where ArtworkId = ? ', [$this->Artist->ArtistId, $this->Name, $this->UrlName, $this->CompletedYear, $this->CompletedYearIsCirca, - $this->Created, $this->Updated, $this->Status, $this->SubmitterUserId, $this->ReviewerUserId, $this->MuseumUrl, $this->PublicationYear, $this->PublicationYearPageUrl, + $this->Created, $this->Status, $this->SubmitterUserId, $this->ReviewerUserId, $this->MuseumUrl, $this->PublicationYear, $this->PublicationYearPageUrl, $this->CopyrightPageUrl, $this->ArtworkPageUrl, $this->IsPublishedInUs, $this->EbookWwwFilesystemPath, $this->MimeType, $this->Exception, $this->Notes, $this->ArtworkId] );