Do not force Image assets to have an alt tag. Fixes bug #11337.
This commit is contained in:
parent
06ac0360b6
commit
c98cd87f80
2 changed files with 4 additions and 6 deletions
|
|
@ -1,6 +1,7 @@
|
|||
7.8.10
|
||||
- fixed #11332: Pagination in webgui.org forum urls
|
||||
- fixed #11341: tmpl_var forum.threads
|
||||
- fixed #11337: Parameters persist
|
||||
|
||||
7.8.9
|
||||
- fixed #11235: wiki search
|
||||
|
|
|
|||
|
|
@ -68,12 +68,8 @@ sub applyConstraints {
|
|||
$self->SUPER::applyConstraints($options);
|
||||
my $maxImageSize = $options->{maxImageSize} || $self->get('maxImageSize') || $self->session->setting->get("maxImageSize");
|
||||
my $thumbnailSize = $options->{thumbnailSize} || $self->get('thumbnailSize') || $self->session->setting->get("thumbnailSize");
|
||||
my $parameters = $self->get("parameters");
|
||||
my $storage = $self->getStorageLocation;
|
||||
unless ($parameters =~ /alt\=/) {
|
||||
$self->update({parameters=>$parameters.' alt="'.$self->get("title").'"'});
|
||||
}
|
||||
my $file = $self->get("filename");
|
||||
my $storage = $self->getStorageLocation;
|
||||
my $file = $self->get("filename");
|
||||
$storage->adjustMaxImageSize($file, $maxImageSize);
|
||||
$self->generateThumbnail($thumbnailSize);
|
||||
$self->setSize;
|
||||
|
|
@ -111,6 +107,7 @@ sub definition {
|
|||
parameters => {
|
||||
fieldType => 'textarea',
|
||||
defaultValue => 'style="border-style:none;"',
|
||||
allowEmpty => 1,
|
||||
},
|
||||
annotations => {
|
||||
fieldType => 'hidden',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue