[ 1328298 ] 6.7.5 random Assets not random
This commit is contained in:
parent
9ec6f44072
commit
c596ea3f1a
2 changed files with 2 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
6.7.7
|
||||
- added two new template variables to the EventsCalendar -
|
||||
pagination.previousPageUrl and pagination.nextPageUrl
|
||||
- fix [ 1328298 ] 6.7.5 random Assets not random
|
||||
- fix [ 1288653 ] Events calendar again - moving forth/back does not work
|
||||
- fix [ 1324230 ] 6.7.6 - Template, Rich Text Editor options not showing
|
||||
- fix [ 1276593 ] 6.7.2 Product Images don't upload
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ sub process {
|
|||
if (defined $asset) {
|
||||
my $children = $asset->getLineage(["children"]);
|
||||
#randomize;
|
||||
srand;
|
||||
my $randomAssetId = $children->[rand(scalar(@{$children}))];
|
||||
my $randomAsset = WebGUI::Asset->newByDynamicClass($randomAssetId);
|
||||
if (defined $randomAsset) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue