Clone stopped working in several tests in 5.14.2. Remove it in favor of Storable::dclone.

Clone handles being passed scalar data, but dclone does not.
This commit is contained in:
Colin Kuskie 2012-10-23 10:00:53 -07:00
parent 1b4f7c33fa
commit be37f12ab1
23 changed files with 70 additions and 49 deletions

View file

@ -16,7 +16,7 @@ package WebGUI::Asset;
use Carp qw( croak confess );
use Scalar::Util qw( blessed weaken );
use Clone qw(clone);
use Storable qw/dclone/;
use JSON;
use HTML::Packer;
@ -2721,7 +2721,7 @@ to set the keywords for this asset.
sub update {
my $self = shift;
my $requestedProperties = shift;
my $properties = clone($requestedProperties);
my $properties = dclone($requestedProperties);
$properties->{lastModified} = time();
# if keywords were specified, then let's set them the right way