Page 1 of 1

Massive add keyword works strangely

PostPosted:Wed Sep 06, 2017 5:50 pm
by lomarcan77
If I select multiple nodes and then I do right click 'add keywords' the dialog works correctly exactly once... the following times I can't add a keyword already existing, only creating a new keyword. Logging out fixes it. For ONE time. Is this a known bug? (just like you can't add a category to multiple nodes?)

Re: Massive add keyword works strangely

PostPosted:Fri Sep 08, 2017 9:16 am
by jllort
Please share with us some screenshots for better understanding about what is happening, because I'm not sure if I understood the issue.
Seem when you assign keywords to multiple documents, if keyword yet exists is not added ( that has sense ), but if some documents have keywords and others not, should add in the documents what they do not have, that should be the wished behaviour.

Re: Massive add keyword works strangely

PostPosted:Fri Sep 08, 2017 10:29 am
by lomarcan77
It doesn't accept the keyword, i.e. it doesn't show the little "- tag" below to indicate it added it.

Example:
- Select some document for massive add, right click add keyword, it shows the add keyword panel
- I type the TAG and press enter, it shows 'processing keywords' and below it appears the "- TAG" that I could use to remove the tag if I wanted to
- Press close, dialog goes away, select some other messages, right click add keywork, dialog comes back
- If I type the same TAG and press enter, it clears the input box but *doesn't* add it to the document and the "- TAG" box doesn't appear.

Re: Massive add keyword works strangely

PostPosted:Sat Sep 09, 2017 9:37 am
by jllort
I have tested with latest OpenKM version. Take a look at the attached screenshots ( after typewriting the keyword, did you press enter button for applying ? ). The issue comes when you want to add a keyword, what previously had been added, it is shown into the list of the panel but you are not able to apply it. You press enter, the keyword disappears but it not applied, is it the issue ? In case afirmative, open an issue ticket at https://github.com/openkm/document-management-system ( in the description add a link to this post ).

Re: Massive add keyword works strangely

PostPosted:Sat Sep 09, 2017 10:28 am
by lomarcan77
Yes, it's exactly that way. I press enter, the keyword input box get cleared like when is being accepted but it doesn't get applied to the nodes! I'll open a ticket, thanks

Re: Massive add keyword works strangely

PostPosted:Sun Sep 10, 2017 7:00 am
by lomarcan77
I developed a theory on what's happening:

If you try to add a keyword which is already shown in the add keyword panel, the frontend simply removes it immediately (it doesn't go to the server). For some reason when you close the panel the frontend list of the 'added' keywords doesn't get cleared and, the next time you try to use one of these on some other group of node, it thinks it's already added and doesn't send it to the server.

Seems plausible?

Re: Massive add keyword works strangely

PostPosted:Sun Sep 10, 2017 10:05 am
by jllort
Might something in direction you are pointing. Must debug the code for looking what's happening.