FLEXIcontent / flexicontent-cck

Advanced content management for Joomla
http://www.flexicontent.org
83 stars 53 forks source link

Bug on multi-select sorting #969

Closed rubenreyes2000 closed 4 years ago

rubenreyes2000 commented 4 years ago

Hi guys

Just wanted to let you know that we are observing the following bug on 3.3.1.5 and 3.3.1.6:

Configuration

To reproduce issue

I am looking through the code to find the bug, I will let you know what I find.

micker commented 4 years ago

hello can you try to test last version in master branch ? because https://github.com/FLEXIcontent/flexicontent-cck/commit/aafd02a1897cc5417a7432b9a5e67d81d9236da5

rubenreyes2000 commented 4 years ago

Same problem using the current version of master branch

micker commented 4 years ago

ok @ggppdk can look it

ggppdk commented 4 years ago

hi, I will have a look at this

rubenreyes2000 commented 4 years ago

I created a pull request with a fix for this issue. Please review it an let me know what you think:

https://github.com/FLEXIcontent/flexicontent-cck/pull/974

ggppdk commented 4 years ago

I followed the instructions and i cannot replicate the bug but i can not replicate it. Tested with firefox and chrome

I think there is a JS error during form load or during reordering that causes this. Can you check for error (not for warnings / notices) in browser console ?

If we include the suggested fix, then order of drop down selection will be changed no longer being as configuration

rubenreyes2000 commented 4 years ago

I don't see any JS errors.

I prepared a new video to explain how to reproduce the error. I hope this helps:

https://www.loom.com/share/a867ce8cc2c74738bda1883037d5bdd6

ggppdk commented 4 years ago

Good i can now replicate this bug with 3.3.4 to be able to replicate i need to load + save the form a 2nd time, -without reordering- the field

Will make a JS fix ASAP and / or add your suggested code of reordering the options list on form reload

about the topic of the choices js , it is JS work that it is not trivial, and can lead to bugs, will be done slowly, starting with the select field

now need to finish work on

ggppdk commented 4 years ago

Sorry for late response for this issue i have tested your suggested fix and committed it with c0ebb47

Thanks !