Skip to content
Snippets Groups Projects
Commit 6b88018c authored by Timothee P's avatar Timothee P :sunflower:
Browse files

Fix project creation fail with attributes null values

parent 9bff2d44
No related branches found
No related tags found
1 merge request!762REDMINE_ISSUE-19722 | Créer des filtres pour les attributs projet sur l'accueil de l'application
......@@ -60,8 +60,8 @@ export default {
},
created() {
// Checks if the component is being used in the context of creating a new project.
if (this.$route.name === 'project_create') {
// Checks if the component is being used in the context of creating a new project and attribute's default value is set
if (this.$route.name === 'project_create' && this.attribute.default_value !== null) {
// If so, initializes the attribute's value with its default value as defined in the attribute's settings.
this.updateValue(this.attribute.default_value, this.attribute.id);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment