PMCORE-3336:If the process has symbols (such as _ or -) it is not found when trying to start it from "+ new case"
Correction CR
This commit is contained in:
@@ -56,6 +56,7 @@ export default {
|
||||
return "btn v-btn-request " + cls;
|
||||
},
|
||||
show() {
|
||||
this.filter = "";
|
||||
this.$refs["my-modal"].show();
|
||||
this.getProcess();
|
||||
},
|
||||
@@ -97,10 +98,8 @@ export default {
|
||||
filterProcesses(processes) {
|
||||
let that = this;
|
||||
return _.filter(processes, (p) => {
|
||||
return (
|
||||
_.toLower(p.title).search(_.lowerCase(that.filter)) != -1 ||
|
||||
_.toLower(p.description).search(_.lowerCase(that.filter)) != -1
|
||||
);
|
||||
return p.title.toLowerCase().indexOf(that.filter.toLowerCase()) !== -1 ||
|
||||
p.description.toLowerCase().indexOf(that.filter.toLowerCase()) !== -1;
|
||||
});
|
||||
},
|
||||
formatResponseGetProcess(response) {
|
||||
|
||||
Reference in New Issue
Block a user