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
|
7.8.10
|
||||||
- fixed #11332: Pagination in webgui.org forum urls
|
- fixed #11332: Pagination in webgui.org forum urls
|
||||||
- fixed #11341: tmpl_var forum.threads
|
- fixed #11341: tmpl_var forum.threads
|
||||||
|
- fixed #11337: Parameters persist
|
||||||
|
|
||||||
7.8.9
|
7.8.9
|
||||||
- fixed #11235: wiki search
|
- fixed #11235: wiki search
|
||||||
|
|
|
||||||
|
|
@ -68,12 +68,8 @@ sub applyConstraints {
|
||||||
$self->SUPER::applyConstraints($options);
|
$self->SUPER::applyConstraints($options);
|
||||||
my $maxImageSize = $options->{maxImageSize} || $self->get('maxImageSize') || $self->session->setting->get("maxImageSize");
|
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 $thumbnailSize = $options->{thumbnailSize} || $self->get('thumbnailSize') || $self->session->setting->get("thumbnailSize");
|
||||||
my $parameters = $self->get("parameters");
|
my $storage = $self->getStorageLocation;
|
||||||
my $storage = $self->getStorageLocation;
|
my $file = $self->get("filename");
|
||||||
unless ($parameters =~ /alt\=/) {
|
|
||||||
$self->update({parameters=>$parameters.' alt="'.$self->get("title").'"'});
|
|
||||||
}
|
|
||||||
my $file = $self->get("filename");
|
|
||||||
$storage->adjustMaxImageSize($file, $maxImageSize);
|
$storage->adjustMaxImageSize($file, $maxImageSize);
|
||||||
$self->generateThumbnail($thumbnailSize);
|
$self->generateThumbnail($thumbnailSize);
|
||||||
$self->setSize;
|
$self->setSize;
|
||||||
|
|
@ -111,6 +107,7 @@ sub definition {
|
||||||
parameters => {
|
parameters => {
|
||||||
fieldType => 'textarea',
|
fieldType => 'textarea',
|
||||||
defaultValue => 'style="border-style:none;"',
|
defaultValue => 'style="border-style:none;"',
|
||||||
|
allowEmpty => 1,
|
||||||
},
|
},
|
||||||
annotations => {
|
annotations => {
|
||||||
fieldType => 'hidden',
|
fieldType => 'hidden',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue