fix: corretta modifica massiva scassata da claude. fix: e possibile inserire clienti non esistenti come in otrs.
This commit is contained in:
@@ -665,9 +665,17 @@ const TicketBulkView = {
|
||||
const type_id = document.getElementById(`bulk-type-${id}`).value;
|
||||
const ownerId = document.getElementById(`bulk-owner-${id}`).value;
|
||||
const responsibleId = document.getElementById(`bulk-responsible-${id}`).value;
|
||||
const customerId = document.getElementById(`bulk-customer-${id}`).value;
|
||||
const customerUserId = document.getElementById(`bulk-customer-user-id-${id}`).value;
|
||||
const customerSearch = document.getElementById(`bulk-customer-search-${id}`).value;
|
||||
let customerId = document.getElementById(`bulk-customer-${id}`).value;
|
||||
let customerUserId = document.getElementById(`bulk-customer-user-id-${id}`).value;
|
||||
const customerSearch = document.getElementById(`bulk-customer-search-${id}`).value.trim();
|
||||
|
||||
if (!customerUserId && customerSearch) {
|
||||
customerUserId = customerSearch;
|
||||
if (!customerId) {
|
||||
customerId = customerSearch;
|
||||
}
|
||||
}
|
||||
|
||||
const subject = document.getElementById(`bulk-subject-${id}`).value.trim();
|
||||
const body = document.getElementById(`bulk-body-${id}`).value.trim();
|
||||
const priority_id = document.getElementById(`bulk-priority-${id}`).value;
|
||||
|
||||
Reference in New Issue
Block a user