Tagged: bug report
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
March 15, 2018 at 1:11 pm #927274
Hi,
there is a bug in
html-helper.class.phpin line 884Issue:
When using “image”-type multiple times in a shortcode withinpopup_element().like
array( "name" => __("Custom Background Image",'avia_framework' ), "desc" => __("Either upload a new, or choose an existing image from your media library. Leave empty if you want to use the background image of the color scheme defined above",'avia_framework' ), "id" => "front_src", "type" => "image", "title" => __("Insert Image",'avia_framework' ), "button" => __("Insert",'avia_framework' ), "std" => ""), array( "name" => __("Custom Background Image",'avia_framework' ), "desc" => __("Either upload a new, or choose an existing image from your media library. Leave empty if you want to use the background image of the color scheme defined above",'avia_framework' ), "id" => "back_src", "type" => "image", "title" => __("Insert Image",'avia_framework' ), "button" => __("Insert",'avia_framework' ), "std" => ""),attachment_sizeshould always beattachment_size='full,full'but after a couple of post saves, it changes toattachment_size='full,full,full,full,full,full'Solution:
please replace
$attachmentsize = !empty($element['shortcode_data']['attachment_size']) ? $element['shortcode_data']['attachment_size'] : "";with:
$attachmentsizes= !empty($element['shortcode_data']['attachment_size']) ? explode(',', $element['shortcode_data']['attachment_size']) : array(); $attachmentsize = !empty($attachmentsizes[self::$imageCount]) ? $attachmentsizes[self::$imageCount] : "";-
This topic was modified 7 years, 7 months ago by
Innovie.
March 15, 2018 at 9:20 pm #927717Hey Innovie,
Just asked our developers to take a look – and check if that is something that has to be checked and fixed.
Best regards,
Basilis -
This topic was modified 7 years, 7 months ago by
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
