public inbox for [email protected]  
help / color / mirror / Atom feed
From: Pradip Parkale <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin][RM5834]:Remove server group option is not available through right click
Date: Tue, 15 Sep 2020 12:55:18 +0530
Message-ID: <CAJ9T6SsFK=bwQvPhtdv+mCnzAnz69RMdhfwk6BRVYPgyvEj-gg@mail.gmail.com> (raw)

Hi Hackers,

Please find the attached patch for server group error.' Remove server
group' option was not available.
-- 
Thanks & Regards,
Pradip Parkale
Software Engineer | EnterpriseDB Corporation


Attachments:

  [application/octet-stream] RM5834.patch (639B, 3-RM5834.patch)
  download | inline diff:
diff --git a/web/pgadmin/browser/server_groups/static/js/server_group.js b/web/pgadmin/browser/server_groups/static/js/server_group.js
index ac1a0c821..4e2fed5ac 100644
--- a/web/pgadmin/browser/server_groups/static/js/server_group.js
+++ b/web/pgadmin/browser/server_groups/static/js/server_group.js
@@ -83,7 +83,7 @@ define('pgadmin.node.server_group', [
 
       canDrop: function(itemData) {
         var serverOwner = itemData.user_id;
-        if (serverOwner != current_user.id)
+        if (serverOwner != current_user.id && !_.isUndefined(serverOwner))
           return false;
         return true; },
       dropAsRemove: true,


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [pgAdmin][RM5834]:Remove server group option is not available through right click
  In-Reply-To: <CAJ9T6SsFK=bwQvPhtdv+mCnzAnz69RMdhfwk6BRVYPgyvEj-gg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox