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

gluon-web-model: resolve hang when submitting form with disabled element #2723

Merged
merged 2 commits into from
Dec 14, 2022

Conversation

mkg20001
Copy link
Member

@mkg20001 mkg20001 commented Dec 12, 2022

I was made aware of a bug when submitting the form while the element is
disabled based on it's dependencies

(disable "enabled" in "private wifi", then save, while having mesh on wan enabled)

The fix was to inherit from AbstractValue instead of just node

AbstractValue's AbstractValue:resolve_node_depends() in particular
solves the issue, but it made more sense to just use the full base class

Also includes translations

@github-actions github-actions bot added 3. topic: config-mode This is about the configuration mode 3. topic: package Topic: Gluon Packages 3. topic: wireless Topic: Wireless labels Dec 12, 2022
@mkg20001 mkg20001 force-pushed the warn-fix branch 2 times, most recently from d08f5fe to fe9db40 Compare December 12, 2022 23:24
mkg20001 and others added 2 commits December 13, 2022 21:18
Co-authored-by: Matthias Schiffer <mschiffer@universe-factory.net>
I was made aware of a bug when submitting the form while the element is
disabled based on it's dependencies

The fix was to inherit from AbstractValue instead of just node

AbstractValue's AbstractValue:resolve_node_depends() in particular
solves the issue, but it made more sense to just use the full base class
@AiyionPrime
Copy link
Member

This looks promising. Thanks for the fix!

@AiyionPrime AiyionPrime merged commit 85f3e40 into freifunk-gluon:master Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. topic: config-mode This is about the configuration mode 3. topic: package Topic: Gluon Packages 3. topic: wireless Topic: Wireless
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants