openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 4a51eae509f71194bcec687494e2a57c80d3bf2f
parent 0a0354819f706f4178506af946fcb1892f461d6f
Author: dankert <devnull@localhost>
Date:   Fri, 17 Sep 2010 23:29:52 +0200

Berechtigungen mit kopieren, wenn das Projekt in die gleiche Datenbank exportiert (also kopiert) wird.

Diffstat:
objectClasses/Project.class.php | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/objectClasses/Project.class.php b/objectClasses/Project.class.php @@ -493,7 +493,6 @@ EOF $db_dest->start(); $sameDB = ( $db_dest->id == $db_src->id ); - Html::debug($sameDB); // ------------------------------------------------------- $mapping = array(); @@ -555,6 +554,13 @@ EOF ), ); + + if ( $sameDB ) + $ids['acl'] = array('foreign_keys'=>array('objectid' => 'object', + 'languageid' => 'language' ), + 'primary_key' =>'id' + ); + foreach( $ids as $tabelle=>$data ) {