fix: corretta modifica massiva scassata da claude. fix: e possibile inserire clienti non esistenti come in otrs.
This commit is contained in:
@@ -317,7 +317,6 @@ const TicketDetailView = {
|
||||
</div>
|
||||
`;
|
||||
|
||||
// Initialize Quill Editor for Note
|
||||
if (window.Quill) {
|
||||
this.noteQuill = new Quill('#note-body-editor', {
|
||||
theme: 'snow',
|
||||
@@ -331,6 +330,14 @@ const TicketDetailView = {
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
// 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.noteQuill = null;
|
||||
}
|
||||
@@ -450,6 +457,12 @@ const TicketDetailView = {
|
||||
|
||||
// Save quick-edit
|
||||
saveBtn.addEventListener('click', async () => {
|
||||
const customerSearch = customerSearchInput ? customerSearchInput.value.trim() : '';
|
||||
if (customerSearch && !customerUserIdInput.value) {
|
||||
customerUserIdInput.value = customerSearch;
|
||||
customerIdInput.value = customerSearch;
|
||||
}
|
||||
|
||||
const updates = {};
|
||||
fields.forEach(el => {
|
||||
const field = el.dataset.field;
|
||||
|
||||
Reference in New Issue
Block a user