Skip to Content.
Sympa Menu

comanage-dev - Re: [comanage-dev] r391 - in registry/trunk: app/Config app/Console/Command app/Controller app/Model app/Plugin app/Plugin/Grouper app/Plugin/Grouper/Config app/Plugin/Grouper/Lib app/Plugin/Grouper/Model app/Plugin/Grouper/Model/Datasource app/View/CoInvites lib/Cake/Model/Datasource

Subject: COmanage Developers List

List archive

Re: [comanage-dev] r391 - in registry/trunk: app/Config app/Console/Command app/Controller app/Model app/Plugin app/Plugin/Grouper app/Plugin/Grouper/Config app/Plugin/Grouper/Lib app/Plugin/Grouper/Model app/Plugin/Grouper/Model/Datasource app/View/CoInvites lib/Cake/Model/Datasource


Chronological Thread 
  • From: Benn Oshrin <>
  • To:
  • Subject: Re: [comanage-dev] r391 - in registry/trunk: app/Config app/Console/Command app/Controller app/Model app/Plugin app/Plugin/Grouper app/Plugin/Grouper/Config app/Plugin/Grouper/Lib app/Plugin/Grouper/Model app/Plugin/Grouper/Model/Datasource app/View/CoInvites lib/Cake/Model/Datasource
  • Date: Mon, 05 Nov 2012 18:09:56 -0500

Too late now, but this should have been a separate commit.

-Benn-

On 10/25/12 6:56 PM,

wrote:
Modified: registry/trunk/app/Controller/CoInvitesController.php
===================================================================
--- registry/trunk/app/Controller/CoInvitesController.php 2012-10-23
23:19:34 UTC (rev 390)
+++ registry/trunk/app/Controller/CoInvitesController.php 2012-10-25
22:56:14 UTC (rev 391)
@@ -517,10 +517,16 @@
$this->Session->setFlash(_txt('er.cop.nf', array($cpid)), '',
array(), 'error');
}

- // Redirect to My Population
- $nextPage = array('controller' => 'co_people',
- 'action' => 'index',
- 'co' => $this->cur_co['Co']['id']);
- $this->redirect($nextPage);
+ $debug = Configure::read('debug');
+ if(!$debug) {
+ // Redirect to My Population when no debugging so that
+ // user sees flash message that email was sent with invitation.
+ // Otherwise when debugging user will see link to the invitation
+ // to help debugging and testing.
+ $nextPage = array('controller' => 'co_people',
+ 'action' => 'index',
+ 'co' => $this->cur_co['Co']['id']);
+ $this->redirect($nextPage);
+ }
}
}




Archive powered by MHonArc 2.6.16.

Top of Page