Skip to content

Commit

Permalink
Merge pull request #7 from pbs/develop
Browse files Browse the repository at this point in the history
4.0.3.3
  • Loading branch information
andrewmenich authored Jun 3, 2024
2 parents 3c6982d + 392dd93 commit 208c502
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 4.0.3.3 - 2024-06-03

### Fixed
- Show sync was not passing required parameters to `createOrUpdateImage()` function

## 4.0.3.2 - 2024-03-21

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "moon/pbs-media-manager-craft-plugin-food",
"description": "Media Manager 4 for PBS API",
"version": "4.0.3.2",
"version": "4.0.3.3",
"type": "craft-plugin",
"keywords": ["craftcms", "pbs", "media-manager"],
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/jobs/ShowEntriesSync.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ public function execute( $queue ): void

foreach($showImagesKeywords as $keyword){
if(str_contains($image->profile, $keyword)) {
$asset = $this->createOrUpdateImage( $showAttributes->title, $image );

$asset = $this->createOrUpdateImage( $showAttributes->title, $image, $image->profile);
if( $asset && isset( $asset->id ) ) {
$showImageArray[$keyword] = $asset->id;
}
Expand Down

0 comments on commit 208c502

Please sign in to comment.