fixed: changing image thumbnail size doesn't resize image

This commit is contained in:
Graham Knop 2008-03-07 18:55:46 +00:00
parent d9d524a2fe
commit 050128f313
3 changed files with 6 additions and 2 deletions

View file

@ -3,6 +3,7 @@
- Internationalized Calendar templates - Internationalized Calendar templates
- fixed: exporting as HTML leaks sessions for inaccessible assets, - fixed: exporting as HTML leaks sessions for inaccessible assets,
- new YUI based date picker - new YUI based date picker
- fixed: changing image thumbnail size doesn't resize image
7.5.5 7.5.5
- fixed: Several typos in the new Calendar help documentation. - fixed: Several typos in the new Calendar help documentation.

View file

@ -334,6 +334,9 @@ sub processPropertiesFromFormPost {
$self->setFile( $filePath ); $self->setFile( $filePath );
$storage->delete; $storage->delete;
} }
else {
$self->applyConstraints;
}
return undef; return undef;
} }

View file

@ -66,8 +66,8 @@ sub applyConstraints {
my $self = shift; my $self = shift;
my $options = shift; my $options = shift;
$self->SUPER::applyConstraints($options); $self->SUPER::applyConstraints($options);
my $maxImageSize = $options->{maxImageSize} || $self->session->setting->get("maxImageSize"); my $maxImageSize = $options->{maxImageSize} || $self->get('maxImageSize') || $self->session->setting->get("maxImageSize");
my $thumbnailSize = $options->{thumbnailSize} || $self->session->setting->get("thumbnailSize"); my $thumbnailSize = $options->{thumbnailSize} || $self->get('thumbnailSize') || $self->session->setting->get("thumbnailSize");
my $parameters = $self->get("parameters"); my $parameters = $self->get("parameters");
my $storage = $self->getStorageLocation; my $storage = $self->getStorageLocation;
unless ($parameters =~ /alt\=/) { unless ($parameters =~ /alt\=/) {