Merge pull request #929 from rahulshukla-webkul/development

issue #913 group in attribute family
This commit is contained in:
Jitendra Singh 2019-05-20 17:58:58 +05:30 committed by GitHub
commit aac26eb906
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 10 deletions

View File

@ -218,9 +218,10 @@
methods: {
addGroup: function (formScope) {
var this_this = this;
this.$validator.validateAll(formScope).then(function (result) {
if (result) {
var this_this = this;
var filteredGroups = groups.filter(function(group) {
return this_this.group.groupName.trim() === (group.name ? group.name.trim() : group.groupName.trim())
@ -238,13 +239,13 @@
});
}
} else {
groups.push(this.group);
groups.push(this_this.group);
groups = this.sortGroups();
groups = this_this.sortGroups();
this.group = {'groupName': '', 'position': '', 'is_user_defined': 1, 'custom_attributes': []};
this.$parent.closeModal();
this_this.$parent.closeModal();
}
}
});

View File

@ -216,9 +216,10 @@
methods: {
addGroup: function (formScope) {
this.$validator.validateAll(formScope).then(function(result) {
var this_this = this;
this.$validator.validateAll(formScope).then(function (result) {
if (result) {
var this_this = this;
var filteredGroups = groups.filter(function(group) {
return this_this.group.groupName.trim() === (group.name ? group.name.trim() : group.groupName.trim())
@ -236,13 +237,13 @@
});
}
} else {
groups.push(this.group);
groups.push(this_this.group);
groups = this.sortGroups();
groups = this_this.sortGroups();
this.group = {'groupName': '', 'position': '', 'custom_attributes': []};
this.group = {'groupName': '', 'position': '', 'is_user_defined': 1, 'custom_attributes': []};
this.$parent.closeModal();
this_this.$parent.closeModal();
}
}
});