[icinga-checkins] icinga.org: icinga-web/master: * Fixed wrong relation definition ( fixes roles not showing proper users)

git at icinga.org git at icinga.org
Mon Apr 11 11:48:51 CEST 2011


Module: icinga-web
Branch: master
Commit: 839c1b69b384d6840aef3278b7c42a65670d4b17
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=839c1b69b384d6840aef3278b7c42a65670d4b17

Author: jmosshammer <jannis.mosshammer at netways.de>
Date:   Mon Apr 11 11:48:38 2011 +0200

* Fixed wrong relation definition (fixes roles not showing proper users)

---

 app/modules/AppKit/lib/database/models/NsmRole.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app/modules/AppKit/lib/database/models/NsmRole.php b/app/modules/AppKit/lib/database/models/NsmRole.php
index 8b24a45..09c60e4 100755
--- a/app/modules/AppKit/lib/database/models/NsmRole.php
+++ b/app/modules/AppKit/lib/database/models/NsmRole.php
@@ -13,8 +13,8 @@ class NsmRole extends BaseNsmRole
 
 		parent::setUp();
 
-		$this->hasMany('NsmUser', array (	'local'		=> 'usro_user_id',
-											'foreign'	=> 'usro_role_id',
+		$this->hasMany('NsmUser', array (	'local'		=> 'usro_role_id',
+											'foreign'	=> 'usro_user_id',
 											'refClass'	=> 'NsmUserRole'));
 
         $options = array (
@@ -219,4 +219,4 @@ class NsmRole extends BaseNsmRole
 		
 		return $out;
 	}
-}
\ No newline at end of file
+}





More information about the icinga-checkins mailing list