summaryrefslogtreecommitdiffstats
path: root/application/modules
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules')
-rw-r--r--application/modules/user/controllers/RoleController.php2
-rw-r--r--application/modules/user/views/scripts/role/index.phtml5
2 files changed, 4 insertions, 3 deletions
diff --git a/application/modules/user/controllers/RoleController.php b/application/modules/user/controllers/RoleController.php
index 8f4d85c..3db425f 100644
--- a/application/modules/user/controllers/RoleController.php
+++ b/application/modules/user/controllers/RoleController.php
@@ -24,8 +24,8 @@ class User_RoleController extends Zend_Controller_Action
{
if(isset($this->userIDsNamespace['groupID'])) {
$roleList = $this->roleMapper->findBy('groupID', $this->userIDsNamespace['groupID']);
- $this->view->groupID = $this->userIDsNamespace['groupID'];
$this->view->roleList = $roleList;
+ $this->view->userIDsNamespace = $this->userIDsNamespace;
} else {
$this->_helper->redirector('selectmembership', 'person');
return;
diff --git a/application/modules/user/views/scripts/role/index.phtml b/application/modules/user/views/scripts/role/index.phtml
index 7255db6..db20aa2 100644
--- a/application/modules/user/views/scripts/role/index.phtml
+++ b/application/modules/user/views/scripts/role/index.phtml
@@ -1,5 +1,5 @@
<?php
-if($this->groupID) {
+if($this->userIDsNamespace['groupID']) {
?>
<h1>Roles</h1>
<?php echo $this->formButton('addrole', 'Add Role', array(
@@ -14,7 +14,8 @@ if($this->groupID) {
$count = 0;
foreach($this->roleList as $role) {
?>
- <tr class="entry">
+ <tr
+ <?php if($role['roleID'] == $this->userIDsNamespace['roleID']) echo 'class="selectedEntry"'; else echo 'class="entry"'; ?>>
<td><?php echo $role['title'] ?></td>
<td class='action'><a
href="<?php echo $this->url(