From a573890895088a33f53a84237a04721dba8c65c1 Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Thu, 11 Dec 2025 00:32:05 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D1=81=D0=B8=D0=BB=D0=B5=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0=20single-selec?= =?UTF-8?q?t=20=D0=B2=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=B5=20=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=D0=B0=20=D1=82?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D1=80=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Добавлено явное приведение к String при сравнении ID товаров - Исправлена инициализация selected в методе destroy() (null вместо {}) - Добавлена версия к JS файлу (?v=2) для сброса кэша браузера - Улучшены комментарии о том, что только ОДИН товар может быть выбран - Гарантирован корректный single-select режим работы компонента --- .../templates/inventory/writeoff_document/detail.html | 2 +- .../products/static/products/js/product-search-picker.js | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/myproject/inventory/templates/inventory/writeoff_document/detail.html b/myproject/inventory/templates/inventory/writeoff_document/detail.html index 165e4fa..db13664 100644 --- a/myproject/inventory/templates/inventory/writeoff_document/detail.html +++ b/myproject/inventory/templates/inventory/writeoff_document/detail.html @@ -275,7 +275,7 @@ - +