Skip to content
Snippets Groups Projects
Commit 9950bd63 authored by Ron Lucke's avatar Ron Lucke
Browse files

fix #2118

Closes #2118

Merge request studip/studip!1374
parent 2c9c3894
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
......@@ -1214,14 +1214,14 @@ export default {
},
selectableTemplates() {
return this.templates.filter(template => {
return template.attributes.purpose === this.newElementPurpose
return template.attributes.purpose === this.newChapterPurpose
});
},
},
methods: {
...mapActions({
createStructuralElement: 'createStructuralElement',
createStructuralElementWithTemplate: 'createStructuralElementWithTemplate',
updateStructuralElement: 'updateStructuralElement',
deleteStructuralElement: 'deleteStructuralElement',
lockObject: 'lockObject',
......@@ -1532,7 +1532,7 @@ export default {
parent_id = this.structuralElement.relationships.parent.data.id;
}
this.showElementAddDialog(false);
this.createStructuralElement({
this.createStructuralElementWithTemplate({
attributes: {
title: title,
purpose: purpose,
......
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