fix :(
This commit is contained in:
parent
5246978a32
commit
5790060655
1 changed files with 1 additions and 2 deletions
|
|
@ -23,8 +23,7 @@ sub process {
|
|||
my $children = $asset->getLineage(["children"]);
|
||||
#randomize;
|
||||
srand;
|
||||
WebGUI::ErrorHandler::warn(rand(scalar(@{$children})));
|
||||
my $randomAssetId = $children->[$index1];
|
||||
my $randomAssetId = $children->[rand(scalar(@{$children}))];
|
||||
my $randomAsset = WebGUI::Asset->newByDynamicClass($randomAssetId);
|
||||
if (defined $randomAsset) {
|
||||
$randomAsset->toggleToolbar;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue