PMCORE-2687: Classic Processes are not listed to start a case
fix description
This commit is contained in:
@@ -14,7 +14,7 @@ const services = {
|
||||
GET_LISTS_COMPLETED: "/light/completed",
|
||||
GET_USERS_PICTURES: "/light/users/data",
|
||||
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}",
|
||||
LOGOUT_USER: "/light/logout",
|
||||
UPLOAD_LOCATION: "/light/case/{app_uid}/upload/location",
|
||||
|
||||
@@ -131,21 +131,21 @@ export default {
|
||||
categories = [];
|
||||
_.each(data, (o) => {
|
||||
index = _.findIndex(categories, (c) => {
|
||||
return c.id == o.categoryId;
|
||||
return c.id == o.pro_category;
|
||||
});
|
||||
if (index == -1) {
|
||||
categories.push({
|
||||
id: o.categoryId,
|
||||
title: o.categoryName,
|
||||
id: o.pro_category,
|
||||
title: o.category_name,
|
||||
items: [],
|
||||
});
|
||||
index = categories.length - 1;
|
||||
}
|
||||
categories[index].items.push({
|
||||
title: o.text,
|
||||
description: o.text,
|
||||
task_uid: o.taskId,
|
||||
pro_uid: o.processId,
|
||||
title: o.pro_title,
|
||||
description: o.pro_description,
|
||||
task_uid: o.tas_uid,
|
||||
pro_uid: o.pro_uid,
|
||||
onClick: that.startNewCase,
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user