comanage-dev - Re: [comanage-dev] Fwd: [JIRA] (CO-242) Error in inviting a person to a co
Subject: COmanage Developers List
List archive
- From: Benn Oshrin <>
- To: Scott Koranda <>
- Cc: comanage-dev <>
- Subject: Re: [comanage-dev] Fwd: [JIRA] (CO-242) Error in inviting a person to a co
- Date: Fri, 17 Feb 2012 17:52:44 -0500
On 2/17/12 5:30 PM, Scott Koranda wrote:
As discussed on the call today I have added an add() method to
the CoPeopleController class that overrides the add() method
in the parent StandardController class.
A diff is attached.
I have tested this patch and it correctly updates the
CoPeople and CoOrgIdentityLink tables.
Benn can you please look at the diff and let me know what if
anything you want changed or if I have overlooked some side
effect?
Can we simplify this to only update ['*_id']['required']? I'm thinking of a scenario where we change the 'rule' or some other aspect of validation in the model and don't remember to change it here.
+ $this->CoOrgIdentityLink->validate = array(
+ 'co_person_id' => array(
+ 'rule' => 'numeric',
+ 'required' => false // default for model is true
+ ),
+ 'org_identity_id' => array(
+ 'rule' => 'numeric',
+ 'required' => false // default for model is true
+ )
+ );
Also, on the same note, it'd be good to add a comment near $validate in the model mentioning that it may be overridden by the controller in add().
Nitpicking, there's an extra newline after the call to parent::add().
-Benn-
- [comanage-dev] Fwd: [JIRA] (CO-242) Error in inviting a person to a co, Benn Oshrin, 02/16/2012
- Re: [comanage-dev] Fwd: [JIRA] (CO-242) Error in inviting a person to a co, Scott Koranda, 02/16/2012
- Re: [comanage-dev] Fwd: [JIRA] (CO-242) Error in inviting a person to a co, Benn Oshrin, 02/16/2012
- Re: [comanage-dev] Fwd: [JIRA] (CO-242) Error in inviting a person to a co, Scott Koranda, 02/17/2012
- Re: [comanage-dev] Fwd: [JIRA] (CO-242) Error in inviting a person to a co, Benn Oshrin, 02/17/2012
- Re: [comanage-dev] Fwd: [JIRA] (CO-242) Error in inviting a person to a co, Scott Koranda, 02/17/2012
- Re: [comanage-dev] Fwd: [JIRA] (CO-242) Error in inviting a person to a co, Benn Oshrin, 02/18/2012
- Re: [comanage-dev] Fwd: [JIRA] (CO-242) Error in inviting a person to a co, Scott Koranda, 02/18/2012
- Re: [comanage-dev] Fwd: [JIRA] (CO-242) Error in inviting a person to a co, Benn Oshrin, 02/18/2012
- Re: [comanage-dev] Fwd: [JIRA] (CO-242) Error in inviting a person to a co, Scott Koranda, 02/17/2012
- Re: [comanage-dev] Fwd: [JIRA] (CO-242) Error in inviting a person to a co, Benn Oshrin, 02/17/2012
- Re: [comanage-dev] Fwd: [JIRA] (CO-242) Error in inviting a person to a co, Scott Koranda, 02/17/2012
- Re: [comanage-dev] Fwd: [JIRA] (CO-242) Error in inviting a person to a co, Benn Oshrin, 02/16/2012
- Re: [comanage-dev] Fwd: [JIRA] (CO-242) Error in inviting a person to a co, Scott Koranda, 02/16/2012
Archive powered by MHonArc 2.6.16.