-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug with update_lead_image method
The 'and return if' isn't returning when the image_display_option is no_image or organisation_image. This means that when an image is created and the lead_image isn't set the assoication is created. It still wouldn't be pushed downstream to Publishing API, but we shouldn't have lead images sitting in the db when there isn't a lead image. This updates the method to explicitly call return within the conditional which resolves the issue.
- Loading branch information
1 parent
9374970
commit e757324
Showing
2 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters