Moose subclassing for Asset/File/*
This commit is contained in:
parent
c35f3b9ffb
commit
d3a3c4d37e
4 changed files with 36 additions and 36 deletions
|
|
@ -142,10 +142,10 @@ this method to deflate the zip file into the proper folder
|
|||
|
||||
=cut
|
||||
|
||||
sub processPropertiesFromFormPost {
|
||||
override processPropertiesFromFormPost => sub {
|
||||
my $self = shift;
|
||||
#File should be saved here by the superclass
|
||||
$self->SUPER::processPropertiesFromFormPost;
|
||||
super();
|
||||
my $storage = $self->getStorageLocation();
|
||||
|
||||
my $file = $self->filename;
|
||||
|
|
@ -169,7 +169,7 @@ sub processPropertiesFromFormPost {
|
|||
unless ($self->unzip($storage,$self->filename)) {
|
||||
$self->session->errorHandler->warn($i18n->get("unzip_error"));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue