-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by lmignon
- Loading branch information
Showing
7 changed files
with
29 additions
and
8 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
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
Empty file.
18 changes: 18 additions & 0 deletions
18
search_engine_image_thumbnail/readme/newsfragments/174.bugfix
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
*Fixes image sizes lookups.* | ||
|
||
When serializing a record and generating thumbnails, the thumbnail sizes are looked | ||
up on the index. Prior to this change, only sizes defined for the model | ||
associated with the current index were looked up. This means that if you tried | ||
to serialize a nested record that had an image field that was defined on a different | ||
model, the thumbnail size was not found and an error was thrown. The lookup method | ||
takes now the record for which the thumbnail is being generated as an argument, so | ||
that the correct model can be used to look up the thumbnail size. You still need | ||
to define the thumbnail sizes for each model serialized in the index. | ||
|
||
|
||
*Fixes UI error when creating a new thumbnail size.* | ||
|
||
When creating a new record, the UI was throwing an error. This was due to the | ||
computations of the domain to apply to restrict the choices of the possible | ||
image fields. When the record is new, no model is set, so the domain for the | ||
field must be empty. This is now handled correctly. |
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