Skip to content

CUI dependent/nested fields - #5924

Merged
SchrodingersGat merged 28 commits into
inventree:masterfrom
wolflu05:feature/form-improvements
Nov 16, 2023
Merged

SchrodingersGat merged 28 commits into
inventree:masterfrom
wolflu05:feature/form-improvements

Conversation

@wolflu05

Copy link
Copy Markdown
Member

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.

@netlify

netlify Bot commented Nov 15, 2023 •

Copy link
Copy Markdown

✅ 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
Copy Markdown
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
@SchrodingersGat SchrodingersGat added 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants