|
From: <gem...@li...> - 2012-03-30 11:07:26
|
Revision: 582
http://gemstracker.svn.sourceforge.net/gemstracker/?rev=582&view=rev
Author: matijsdejong
Date: 2012-03-30 11:07:16 +0000 (Fri, 30 Mar 2012)
Log Message:
-----------
Updated display of 'Can access'
Modified Paths:
--------------
trunk/library/classes/Gems/User/User.php
trunk/library/snippets/Organization/OrganizationEditSnippet.php
Modified: trunk/library/classes/Gems/User/User.php
===================================================================
--- trunk/library/classes/Gems/User/User.php 2012-03-30 09:56:07 UTC (rev 581)
+++ trunk/library/classes/Gems/User/User.php 2012-03-30 11:07:16 UTC (rev 582)
@@ -541,6 +541,7 @@
if (! $this->_hasVar('__allowedOrgs')) {
$this->refreshAllowedOrganizations();
}
+ // MUtil_Echo::track($this->_getVar('__allowedOrgs'));
return $this->_getVar('__allowedOrgs');
}
Modified: trunk/library/snippets/Organization/OrganizationEditSnippet.php
===================================================================
--- trunk/library/snippets/Organization/OrganizationEditSnippet.php 2012-03-30 09:56:07 UTC (rev 581)
+++ trunk/library/snippets/Organization/OrganizationEditSnippet.php 2012-03-30 11:07:16 UTC (rev 582)
@@ -109,9 +109,10 @@
//Strip self
unset($allowedOrgs[$this->formData['gor_id_organization']]);
$display = join(', ', $allowedOrgs);
- if ($display) {
- $bridge->addExhibitor('allowed', 'value', $display, 'label', $this->_('Can access'));
+ if (! $display) {
+ $display = MUtil_Html::create('em', $this->_('No access to other organizations.'));
}
+ $bridge->addExhibitor('allowed', 'value', $display, 'label', $this->_('Can access'));
}
$this->addItems($bridge, 'gor_user_class');
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|