From 3148fa40115f61122330dcfb687594181dfe08fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sami=20V=C3=A4nttinen?= Date: Sat, 10 Aug 2024 17:01:19 +0300 Subject: [PATCH] Fix attribute filling with identical usernames (#2304) Fix attribute filling with identical usernames --- keepassxc-browser/background/page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keepassxc-browser/background/page.js b/keepassxc-browser/background/page.js index dff53c5..ca6ba9a 100755 --- a/keepassxc-browser/background/page.js +++ b/keepassxc-browser/background/page.js @@ -317,11 +317,11 @@ page.updateContextMenu = async function(tab, credentials) { // Show username inside [] if there are KPH attributes inside multiple credentials const attributeName = Object.keys(attribute)[0].slice(5); const finalName = credentials.length > 1 - ? `[${cred.login}] ${attributeName}` + ? `[${cred?.login}] ${attributeName} (${cred.name || credentials.indexOf(cred)})` : attributeName; const menuItem = { - action: `fill_attribute_${finalName}`, + action: `fill_attribute_${cred?.uuid}_${attributeName}`, args: attribute, parentId: 'fill_attribute', title: finalName