View Issue Details

IDProjectCategoryView StatusLast Update
0006746module Visual CMSmodule Visual CMS - subpublic2018-08-14 10:48
Reporterwalldemar Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Platformoxid_vmOS VersionEE 6.0 
Fixed in Version3.2.1 
Summary0006746: Visual CMS: Problem with CAROUSEL and add more than one images
DescriptionWhen i was created content in VISUAL CMS i want to add carousel to the conent. When i want to add more than one images and click save button. Visual CMS saves only first choosen image.
TagsWYSIWYG
Attached Files
111.png (350,471 bytes)   
111.png (350,471 bytes)   
222.png (384,844 bytes)   
222.png (384,844 bytes)   

Activities

akling

2018-03-15 17:20

reporter   ~0012421

Bug persists in VisualCMS V3.1.0 via OXID EE V6.0.1 - Fix urgently needed to be able to use VisualCMS in projects!

V.Schwarz

2018-04-18 16:59

reporter   ~0012443

I found a simple workaround to fix the bug, until it will be fixed in some future release.
The problem can be found in the modules JS file where all the magic happens:
source/modules/ddoe/visualcms/build/js/plugins/visualeditor.js on Line 1035 in the serializeInputImages function.

Here the data-multi attribute will checked if the value is equal '1' but the value returned by data('multi') is a number not a string.
So everytime there are widgets with multiple images, it would override whole imageList to only select the first. That is what happens in the "else" part of the if condition.

To prevent this, you only need to change the line:
if ( $target.data( 'multi' ) === '1' )
to:
if ( $target.data( 'multi' ) === 1 )

Because the visualeditor.js is part of the minified backend.min.js you need to run `grunt`in the module folder again, to compile/minify the js files.
After that the carousel/gallery widget should work as it should.

I hope this will help to get this fixed soon, because i think it's a major problem. You can't really use the full functionallity of the module.

robert blank

2018-07-12 12:21

reporter   ~0012533

Resolved by https://github.com/OXID-eSales/visual_cms_module/commit/bf74c8cb3931105cb42c75b4d0e479649f0f3744