Revision: 1177
http://sourceforge.net/p/gemstracker/code/1177
Author: matijsdejong
Date: 2013-03-13 16:12:06 +0000 (Wed, 13 Mar 2013)
Log Message:
-----------
Display fix
Modified Paths:
--------------
trunk/library/classes/Gems/Model/RespondentModel.php
Modified: trunk/library/classes/Gems/Model/RespondentModel.php
===================================================================
--- trunk/library/classes/Gems/Model/RespondentModel.php 2013-03-13 15:50:28 UTC (rev 1176)
+++ trunk/library/classes/Gems/Model/RespondentModel.php 2013-03-13 16:12:06 UTC (rev 1177)
@@ -224,18 +224,18 @@
$this->resetOrder();
if ($this->has('gr2o_id_organization')) {
+ $user = $this->loader->getCurrentUser();
+
$this->set('gr2o_id_organization',
'label', $translator->_('Organization'),
- 'tab', $translator->_('Identification')
+ 'tab', $translator->_('Identification'),
+ 'multiOptions', $user->getRespondentOrganizations()
);
- if ($this->isMultiOrganization()) {
- $user = $this->loader->getCurrentUser();
+ $this->set('gr2o_id_organization', 'default', $user->getCurrentOrganizationId());
- $this->set('gr2o_id_organization',
- 'default', $user->getCurrentOrganizationId(),
- 'multiOptions', $user->getRespondentOrganizations()
- );
+ if (count($user->getAllowedOrganizations()) == 1) {
+ $this->set('gr2o_id_organization', 'elementClass', 'Exhibitor');
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|