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

CUI dependent/nested fields #5924

Merged
merged 28 commits into from
Nov 16, 2023

Conversation

wolflu05
Copy link
Contributor

Sorry that my old code #5837, #5913 broke the forms. I really thought I checked it enough, but it appears otherwise. The was just one single issue with the code for forms that were using the old nested field implementation with the __. My plan was to now support both instead of refactoring all of them. The issue was that when using the old implementation the OPTIONS request returns a nested object field, but the field data doesn't contain it and that's why optionsField is undefined in L500. I thought that trying the part form is enough, but apparently it wasn't using any of those nested fields, only if I would have tried the duplicate part form. This PR includes the old code including the fix for this undefined problem. I now tested a bunch of other forms and they worked, hopefully all work now.

Copy link

netlify bot commented Nov 15, 2023

Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 157d16d
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/6554cbc14bde30000892fb2f

@SchrodingersGat
Copy link
Member

@wolflu05 thanks for the updates, it appears to work well now, with existing forms.

@SchrodingersGat SchrodingersGat merged commit 0b168c1 into inventree:master Nov 16, 2023
24 checks passed
@SchrodingersGat SchrodingersGat added user interface User interface api Relates to the API labels Nov 16, 2023
@SchrodingersGat SchrodingersGat added this to the 0.13.0 milestone Nov 16, 2023
@wolflu05 wolflu05 deleted the feature/form-improvements branch February 15, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Relates to the API user interface User interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants