[ 1328298 ] 6.7.5 random Assets not random

This commit is contained in:
Matthew Wilson 2005-10-17 17:12:44 +00:00
parent 9ec6f44072
commit c596ea3f1a
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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) {