From 40e5516ce586f446bd6da110b256a790f9b30dff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be>
Date: Tue, 12 Dec 2017 11:05:18 +0100
Subject: [PATCH] :ambulance: fix(listing): Fix base handling to fix server
 copy/paste

The listing of serverService was conflicting with the one from
 simpleManagement, creating a bug when copy/pasting.

issue #5739
---
 include/class_listing.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class_listing.inc b/include/class_listing.inc
index ef0ce4380..618014341 100644
--- a/include/class_listing.inc
+++ b/include/class_listing.inc
@@ -650,8 +650,8 @@ class listing
     $this->base = $base;
     if ($this->baseMode) {
       $this->baseSelector->setBase($this->base);
+      session::global_set('CurrentMainBase', $this->base);
     }
-    session::global_set('CurrentMainBase', $this->base);
   }
 
   function tryAndSetBase($base)
-- 
GitLab