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

Fix default values #15710

Merged
merged 16 commits into from Apr 10, 2023
Merged

Fix default values #15710

merged 16 commits into from Apr 10, 2023

Conversation

Nitwel
Copy link
Member

@Nitwel Nitwel commented Sep 22, 2022

Description

There where 2 Problems.

  1. We would do an if(schema.default_value) which would fail when you want to set the default value to false.
  2. The drawer item was ignoring the default values when saving.

Fixes #15569, fixes ENG-189

@paescuj paescuj requested review from a team, paescuj, licitdev and azrikahar and removed request for a team March 2, 2023 12:24
@rijkvanzanten rijkvanzanten enabled auto-merge (squash) April 10, 2023 21:17
@rijkvanzanten rijkvanzanten merged commit 9cbfa88 into main Apr 10, 2023
6 checks passed
@rijkvanzanten rijkvanzanten deleted the fix-15569 branch April 10, 2023 21:23
paescuj added a commit that referenced this pull request Apr 11, 2023
* Fix default values

* run linter

* use assign

* fix working with permissions

* run linter

* fix set related item to empty when having junction

* check for empty

* Update app/src/views/private/components/drawer-item.vue

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
@rijkvanzanten rijkvanzanten added this to the Next Release milestone Apr 13, 2023
hanneskuettner pushed a commit to hanneskuettner/directus that referenced this pull request Apr 18, 2023
* Fix default values

* run linter

* use assign

* fix working with permissions

* run linter

* fix set related item to empty when having junction

* check for empty

* Update app/src/views/private/components/drawer-item.vue

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
meditadvisors pushed a commit to ciso360ai/directus-mod that referenced this pull request May 13, 2023
* Fix default values

* run linter

* use assign

* fix working with permissions

* run linter

* fix set related item to empty when having junction

* check for empty

* Update app/src/views/private/components/drawer-item.vue

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to add child item with default values from drawer
5 participants