fix: corretta gestione proprietario e responsaibile da pagina ticket e a mio carico
This commit is contained in:
+2
-1
@@ -1418,6 +1418,7 @@ router.patch('/batch/update', async (req, res) => {
|
||||
if (updates.ticket_priority_id !== undefined) ticketFields.PriorityID = updates.ticket_priority_id;
|
||||
if (updates.queue_id !== undefined) ticketFields.QueueID = updates.queue_id;
|
||||
if (updates.user_id !== undefined) ticketFields.OwnerID = updates.user_id;
|
||||
if (updates.responsible_user_id !== undefined) ticketFields.ResponsibleID = updates.responsible_user_id;
|
||||
if (updates.customer_id !== undefined) ticketFields.CustomerID = updates.customer_id;
|
||||
if (updates.customer_user_id !== undefined) ticketFields.CustomerUser = updates.customer_user_id;
|
||||
|
||||
@@ -1470,7 +1471,7 @@ router.patch('/batch/update', async (req, res) => {
|
||||
try {
|
||||
await client.query('BEGIN');
|
||||
|
||||
const allowedFields = ['ticket_state_id', 'ticket_priority_id', 'queue_id', 'user_id', 'customer_id', 'customer_user_id'];
|
||||
const allowedFields = ['ticket_state_id', 'ticket_priority_id', 'queue_id', 'user_id', 'responsible_user_id', 'customer_id', 'customer_user_id'];
|
||||
const setClauses = [];
|
||||
const setParams = [];
|
||||
let pIdx = 1;
|
||||
|
||||
Reference in New Issue
Block a user