File: 1038_include-class_pathNavigator.inc-Don-t-send-object-DN.patch

package info (click to toggle)
gosa 2.8~git20230203.10abe45%2Bdfsg-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 33,108 kB
  • sloc: php: 32,102; javascript: 10,836; pascal: 3,776; xml: 3,135; sh: 852; python: 162; makefile: 45; perl: 2
file content (26 lines) | stat: -rw-r--r-- 991 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From fe0e270135c7d65e2ec391d1eecc8098b3ebc439 Mon Sep 17 00:00:00 2001
From: root <root@postoffice.intern>
Date: Tue, 29 Aug 2023 12:55:04 +0200
Subject: [PATCH] include/class_pathNavigator.inc: Don't send object DN for new
 objects when registering plugin.

---
 include/class_pathNavigator.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class_pathNavigator.inc b/include/class_pathNavigator.inc
index f2003d8..e04bebd 100644
--- a/include/class_pathNavigator.inc
+++ b/include/class_pathNavigator.inc
@@ -22,7 +22,7 @@ class pathNavigator
         // In case of tabs add the 'dn' of the entry
         if ($class instanceof tabs) {
             // Convert dn to cn
-            if (isset($class->dn)) {
+            if (isset($class->dn) && $class->dn !== "new") {
                 if (!session::is_set("pathNavigator::registerPlugin:{$class->dn}")) {
                     global $config;
                     $ldap = $config->get_ldap_link();
-- 
2.39.2