fix: corretta modifica massiva scassata da claude. fix: e possibile inserire clienti non esistenti come in otrs.
This commit is contained in:
@@ -243,6 +243,14 @@ const TicketCreateView = {
|
||||
if (this.savedState && this.savedState.body) {
|
||||
this.quill.root.innerHTML = this.savedState.body;
|
||||
}
|
||||
|
||||
// Prevent tab navigation on toolbar items
|
||||
const toolbar = container.querySelector('.ql-toolbar');
|
||||
if (toolbar) {
|
||||
toolbar.querySelectorAll('button, select, span[role="button"], input').forEach(el => {
|
||||
el.setAttribute('tabindex', '-1');
|
||||
});
|
||||
}
|
||||
} else {
|
||||
this.quill = null;
|
||||
}
|
||||
@@ -589,9 +597,17 @@ const TicketCreateView = {
|
||||
const priority_id = document.getElementById('create-priority').value;
|
||||
const type_id = document.getElementById('create-type')?.value;
|
||||
|
||||
const customerId = customerIdInput.value;
|
||||
const userSearchVal = userSearchInput.value.trim();
|
||||
let customerId = customerIdInput.value;
|
||||
let customerUserId = customerUserIdInput.value;
|
||||
|
||||
if (!customerUserId && userSearchVal) {
|
||||
customerUserId = userSearchVal;
|
||||
if (!customerId) {
|
||||
customerId = userSearchVal;
|
||||
}
|
||||
}
|
||||
|
||||
const ownerId = ownerIdInput.value;
|
||||
const responsibleId = responsibleIdInput.value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user