diff --git a/script.js b/script.js index c63f3c4..5e77f4f 100644 --- a/script.js +++ b/script.js @@ -304,7 +304,7 @@ function updateItem(id, updatedItem) { const logEntry = { when: formatDateTime(), - what: `Изменена запись: ${oldItem.employee} — ${item.city}` + (changes.length > 0 ? ` (${changes.join(', ')})` : ''), + what: `Изменена запись: ${oldItem.employee} — ${updatedItem.city}` + (changes.length > 0 ? ` (${changes.join(', ')})` : ''), who: CURRENT_USER };