Closed konradoboza closed 3 years ago
Hi @konradoboza
Thanks, I will look into this soon, but I don't know if I can fix this, since YUI is not my strongest suit. I would appreciate if you could take a look at it too if you know where and how to fix it :)
Hi @emodric,
I looked into this issue and found out, that there is a problem with rendering templates.skeleton
template. After changing the language of the content it is somehow removed, but I couldn't reach the code which is responsible for that. Is it any possibility, that this is also used somewhere in the tags admin panel as this skeleton contains html code for autocomplete input? Maybe there is some wrong event which is triggered. Please take a look and give me any clues, so I'll be able to further investigate this problem.
I can say with certainty that it's not used in admin panel, only for the field input. Why it dissapears, I cannot say, but I'll try to debug it!
Hi @konradoboza
I've tried testing the input with changing the language and I'm afraid I cannot reproduce your issue.
When I switch to another language in content edit interface, everything keeps on working as before, no issues whatsoever.
When creating a new content and switching language, however, I get the following error:
so I can't test that usecase :/
I was able to reproduce it every time on a clean installation of eZ Platform v.1.13.0 with TagsBundle v3.1.4. Here are my steps to reproduce:
ezplatform.yml
Please let me know if you performed some similar tests. Which browser do you use?
I reproduced the issue, and it seems that there is something missing somewhere which would reinitialize the interface on language change.
Simply calling jQuery('#eztagsXYZ').EzTags();
from the console (XYZ is the field def ID of the tags field) makes the interface reappear, which indicates that all we need is an initializer method which would execute on language change. I hope you know a place where we can stick that initialization :)
I tried to fix it the way you suggested, but it won't work. When I reinitialize the interface by using jQuery('#eztags123')
it corrupts the popup for selecting tags from the tree. See screenshot below.
Maybe re-rendering whole Tags template and re-attach all events could be a possible workaround? If yes, please give me some clues how to do it properly and I could try to put it in a correct place.
@emodric do you maybe have any feedback regarding this issue?
Unfortunatelly not. I tried debugging it further, but it goes beyond by YUI/JavaScript knowledge, so if you could try and fix it by yourself, it would be very much appreciated.
Closing as obsolete.
Good morning!
Currently, a new issue has been observed: while creating new content, changing its language causes disappearing of tags input. I reproduced this issue on eZ Platform 1.13 and tagsbundle v3.1.4.
Please let me know if you could fix this.
Best regards