View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006746 | module Visual CMS | module Visual CMS - sub | public | 2017-12-16 12:22 | 2018-08-14 10:48 |
Reporter | walldemar | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | oxid_vm | OS Version | EE 6.0 | ||
Fixed in Version | 3.2.1 | ||||
Summary | 0006746: Visual CMS: Problem with CAROUSEL and add more than one images | ||||
Description | When 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. | ||||
Tags | WYSIWYG | ||||
Attached Files | |||||
|
Bug persists in VisualCMS V3.1.0 via OXID EE V6.0.1 - Fix urgently needed to be able to use VisualCMS in projects! |
|
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. |
|
Resolved by https://github.com/OXID-eSales/visual_cms_module/commit/bf74c8cb3931105cb42c75b4d0e479649f0f3744 |