Fix a bug in the Keyword package where it would return a list of all assetIds with keywords if a reference asset with no keywords was passed in
This commit is contained in:
parent
6f90867d26
commit
eff71d9c44
2 changed files with 4 additions and 1 deletions
|
|
@ -25,6 +25,7 @@
|
||||||
perlmonkey2)
|
perlmonkey2)
|
||||||
- fixed: Thing list drop down broken when multiple thingy's on one page.
|
- fixed: Thing list drop down broken when multiple thingy's on one page.
|
||||||
- fixed: Shop Tax pagination and sorting now work.
|
- fixed: Shop Tax pagination and sorting now work.
|
||||||
|
- fixed: Keywords and SKU assets
|
||||||
|
|
||||||
7.5.16
|
7.5.16
|
||||||
- Created a migration from 7.4.40 directly to 7.5.16.
|
- Created a migration from 7.4.40 directly to 7.5.16.
|
||||||
|
|
|
||||||
|
|
@ -183,6 +183,7 @@ An array reference of keywords to match.
|
||||||
=head3 matchAssetKeywords
|
=head3 matchAssetKeywords
|
||||||
|
|
||||||
A reference to an asset that has a list of keywords to match. This can help locate assets that are similar to another asset.
|
A reference to an asset that has a list of keywords to match. This can help locate assets that are similar to another asset.
|
||||||
|
If the referenced asset does not have any keywords, then an empty array reference is returned.
|
||||||
|
|
||||||
=head3 isa
|
=head3 isa
|
||||||
|
|
||||||
|
|
@ -213,6 +214,7 @@ sub getMatchingAssets {
|
||||||
asset => $options->{matchAssetKeywords},
|
asset => $options->{matchAssetKeywords},
|
||||||
asArrayRef => 1,
|
asArrayRef => 1,
|
||||||
});
|
});
|
||||||
|
return [] unless scalar @{ $options->{keywords} };
|
||||||
}
|
}
|
||||||
|
|
||||||
# looking for a class name match
|
# looking for a class name match
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue