Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] r387 - registry/trunk/app/Controller

Subject: COmanage Developers List

List archive

[comanage-dev] r387 - registry/trunk/app/Controller


Chronological Thread 
  • From:
  • To:
  • Subject: [comanage-dev] r387 - registry/trunk/app/Controller
  • Date: Mon, 22 Oct 2012 14:58:05 -0400

Author: benno
Date: 2012-10-22 14:58:05 -0400 (Mon, 22 Oct 2012)
New Revision: 387

Modified:
registry/trunk/app/Controller/StandardController.php
Log:
Fix redirect expectations (CO-493)

Modified: registry/trunk/app/Controller/StandardController.php
===================================================================
--- registry/trunk/app/Controller/StandardController.php 2012-10-16
19:16:11 UTC (rev 386)
+++ registry/trunk/app/Controller/StandardController.php 2012-10-22
18:58:05 UTC (rev 387)
@@ -682,24 +682,23 @@
*/

function performRedirect() {
- $redirect = $this->viewVars['redirect'];
-
- // Sets tab to be opened by co_people page via jquery
- if($this->viewVars['redirect']['controller'] == 'co_people'
- || $this->viewVars['redirect']['controller'] == 'org_identities') {
- if($this->redirectTab)
- $redirect['tab'] = $this->redirectTab;
- }
-
if($this->requires_person) {
+ $redirect = $this->viewVars['redirect'];
+
+ // Sets tab to be opened by co_people page via jquery
+ if($this->viewVars['redirect']['controller'] == 'co_people'
+ || $this->viewVars['redirect']['controller'] == 'org_identities') {
+ if($this->redirectTab)
+ $redirect['tab'] = $this->redirectTab;
+ }
+
$this->set('redirect', $redirect);
$this->redirect($redirect);
- }
-
- if(isset($this->cur_co))
+ } elseif(isset($this->cur_co)) {
$this->redirect(array('action' => 'index', 'co' =>
Sanitize::html($this->cur_co['Co']['id'])));
- else
+ } else {
$this->redirect(array('action' => 'index'));
+ }
}

/**




Archive powered by MHonArc 2.6.16.

Top of Page