PMCORE-2687: Classic Processes are not listed to start a case

fix description
This commit is contained in:
Rodrigo Quelca
2021-01-08 16:24:22 +00:00
parent 86ca7b96ea
commit 00a0929601
2 changed files with 8 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ const services = {
GET_LISTS_COMPLETED: "/light/completed", GET_LISTS_COMPLETED: "/light/completed",
GET_USERS_PICTURES: "/light/users/data", GET_USERS_PICTURES: "/light/users/data",
FORMS_ARRAY: "/light/project/{pro_uid}/activity/{act_uid}/steps", FORMS_ARRAY: "/light/project/{pro_uid}/activity/{act_uid}/steps",
GET_NEW_CASES: "/light/start-case", GET_NEW_CASES: "/case/start-cases?type_view=category",
GET_HISTORY_CASES: "/light/history/{app_uid}", GET_HISTORY_CASES: "/light/history/{app_uid}",
LOGOUT_USER: "/light/logout", LOGOUT_USER: "/light/logout",
UPLOAD_LOCATION: "/light/case/{app_uid}/upload/location", UPLOAD_LOCATION: "/light/case/{app_uid}/upload/location",

View File

@@ -131,21 +131,21 @@ export default {
categories = []; categories = [];
_.each(data, (o) => { _.each(data, (o) => {
index = _.findIndex(categories, (c) => { index = _.findIndex(categories, (c) => {
return c.id == o.categoryId; return c.id == o.pro_category;
}); });
if (index == -1) { if (index == -1) {
categories.push({ categories.push({
id: o.categoryId, id: o.pro_category,
title: o.categoryName, title: o.category_name,
items: [], items: [],
}); });
index = categories.length - 1; index = categories.length - 1;
} }
categories[index].items.push({ categories[index].items.push({
title: o.text, title: o.pro_title,
description: o.text, description: o.pro_description,
task_uid: o.taskId, task_uid: o.tas_uid,
pro_uid: o.processId, pro_uid: o.pro_uid,
onClick: that.startNewCase, onClick: that.startNewCase,
}); });
}); });