huridocs / uwazi

Uwazi is a web-based, open-source solution for building and sharing document collections
http://www.uwazi.io
MIT License
242 stars 80 forks source link

Menu settings: problems adding an item into a group #7235

Closed salvalacruz closed 2 months ago

salvalacruz commented 2 months ago

Describe the bug At the Menu settings, it is not possible to ad a link into a group, as the UI does not allow to save this change.

To Reproduce Steps to reproduce the behavior:

  1. Go to Settings; go to Menu: /settings/navlinks
  2. If the Menu has no groups, add a new one with a few links.
  3. Click on Add link to create a new item in the menu.
  4. Enter details of the new link, including a group selection.
  5. Try to click on 'Save' button and see error: the button is not active.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image image image

Device (please select all that apply)

Browser Brave

Additional context There is no problem if you add a new link with no group. As a work around, you can do that and after editing the item and selecting the group.

RafaPolit commented 2 months ago

I have confirmed this is happening. If you add a link to the ROOT element, it enables the save, but adding only a child item does not.

aphilop commented 2 months ago

@salvalacruz @RafaPolit

I am following the steps to reproduce and (unless I am doing something completely strange and different) I can not reproduce this consistenly. It happened to me once but tried to reproduce it with no success. I can create a group, save it and access it afterwards.

image image
Zasa-san commented 2 months ago

I've already detected the problem and the steps to reproduce it consistently. I'm working right now on a hotfix to address this.

The problem is when you ONLY add a child element and do nothing else. The save button doesn't become enabled in that case and the users cannot save until they do another action.