Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MainUI] Fix items disappear from model if stateDescription is added #1559

Merged
merged 1 commit into from Dec 4, 2022

Conversation

flo-mic
Copy link
Contributor

@flo-mic flo-mic commented Dec 4, 2022

I noticed that an item disappears from the model if the parent item is a semantic item but the current item is a non semantic item with other metadata like stateDescription or commandDescription. The problem is caused by an if clause which just filters for items without metadata, which is incorrect. It should filter for items without metadata or without semantic metadata to fix this problem.

The issue was also reported here #925
Fixes #925

Signed-off-by: Florian Michel florianmichel@hotmail.de

Signed-off-by: Florian Michel <florianmichel@hotmail.de>
@flo-mic flo-mic requested a review from a team as a code owner December 4, 2022 15:15
Copy link
Member

@ghys ghys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the much needed fix!

@ghys ghys merged commit f42a36f into openhab:main Dec 4, 2022
@ghys ghys added bug Something isn't working main ui Main UI labels Dec 4, 2022
@ghys ghys added this to the 3.4 milestone Dec 4, 2022
@flo-mic flo-mic deleted the fix/items-model-disappear branch December 6, 2022 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working main ui Main UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Model tree stops showing childs of non-semantic group item if StateDescription metadata is added
2 participants