Bug 1319052 follow-up - Fix mistake found by linting. rs=linting
authorGeoff Lankow <geoff@darktrojan.net>
Fri, 24 Apr 2020 16:18:47 +1200
changeset 38036 e8fdfd14d5567ea7fc380a84693022ca84a15493
parent 38035 6a5577377e1dcce5f524bfe68a5024aa68a5dd0e
child 38037 a15a99bbf363b7478eb5cdad526e391b586189f0
push id2595
push userclokep@gmail.com
push dateMon, 04 May 2020 19:02:04 +0000
treeherdercomm-beta@f53913797371 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslinting
bugs1319052
Bug 1319052 follow-up - Fix mistake found by linting. rs=linting
mailnews/addrbook/content/abAddressBookNameDialog.js
--- a/mailnews/addrbook/content/abAddressBookNameDialog.js
+++ b/mailnews/addrbook/content/abAddressBookNameDialog.js
@@ -66,17 +66,17 @@ function abNameOKButton(event) {
 
   // Do not allow an already existing name.
   if (MailServices.ab.directoryNameExists(newDirName)) {
     const kAlertTitle = document
       .getElementById("bundle_addressBook")
       .getString("duplicateNameTitle");
     const kAlertText = document
       .getElementById("bundle_addressBook")
-      .getFormattedString("duplicateNameText", [ab.dirName]);
+      .getFormattedString("duplicateNameText", [newDirName]);
     Services.prompt.alert(window, kAlertTitle, kAlertText);
     event.preventDefault();
     return;
   }
 
   // Either create a new directory or update an existing one depending on what
   // we were given when we started.
   if (gDirectory) {