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:
fabio
2021-10-25 12:30:17 -04:00
committed by Fabio Guachalla
parent 1d0e21e71f
commit 069366a0f3

View File

@@ -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) {