From 93063efad684e235111f0a2390f1e11da9e9fce1 Mon Sep 17 00:00:00 2001
From: Martin Haase <martin.haase@daasi.de>
Date: Thu, 15 Jan 2009 13:59:52 +0000
Subject: [PATCH] Project name and descritpion will now be entered into LDAP
 even if no or empty project file was given

git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@2782 7c539038-3410-0410-b1ec-0f2a7bf1c452
---
 .../rbacSoap/TgExtra.class.php                             | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/info.textgrid.middleware.tgauth.rbac/rbacSoap/TgExtra.class.php b/info.textgrid.middleware.tgauth.rbac/rbacSoap/TgExtra.class.php
index d5c99a3..ed474ea 100755
--- a/info.textgrid.middleware.tgauth.rbac/rbacSoap/TgExtra.class.php
+++ b/info.textgrid.middleware.tgauth.rbac/rbacSoap/TgExtra.class.php
@@ -1479,11 +1479,18 @@ class TgExtra {
 
 
         // Set the project-description and name
+        $arrModify['tgprojectname'][] = $inRequest->name;
+        preg_match( "/.+/", $inRequest->description ) ? $arrModify['tgprojectdescription'][] = $inRequest->description : false;
+        preg_match( "/.+/", $inRequest->file ) ? $arrModify['tgprojectfile'][] = $inRequest->file : false;
+
         $connection->modify( $this->rbac->getConfiguration()->getValue( "role", "namingattribute" ) . "=TGPR" . ($maxNumber + 1) . ","
                              . $this->rbac->getConfiguration()->getValue( "project", "base" ),
+                             $arrModify );
+/*
                              Array( "tgprojectdescription" => Array( $inRequest->description ),
                                     "tgprojectname" => Array( $inRequest->name ),
                                     "tgprojectfile" => Array( $inRequest->file ) ) );
+*/
 
 	$this->rbac->addActiveRole( $username, $inRequest->auth, 
                                  $this->rbac->getConfiguration()->getValue( "role", "namingattribute" ) . "=Projektleiter,"
-- 
GitLab