Author: sevein
Date: Fri Nov 27 19:22:02 2009
New Revision: 3982

Log:
Add "Location and address" to validation checks for mandatory fields 
(ICA-ISDIAH).

Modified:
   trunk/apps/qubit/modules/repository/actions/showIsdiahAction.class.php

Modified: trunk/apps/qubit/modules/repository/actions/showIsdiahAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/repository/actions/showIsdiahAction.class.php      
Fri Nov 27 19:10:36 2009        (r3981)
+++ trunk/apps/qubit/modules/repository/actions/showIsdiahAction.class.php      
Fri Nov 27 19:22:02 2009        (r3982)
@@ -37,12 +37,14 @@
     $validatorSchema = new sfValidatorSchema;
     $validatorSchema->authorizedFormOfName = new 
sfValidatorString(array('required' => true), array('required' => 'Authorized 
form of name'));
     $validatorSchema->identifier = new sfValidatorString(array('required' => 
true), array('required' => 'Identifier'));
+    $validatorSchema->locationAndAddress = new 
QubitValidatorCountable(array('required' => true), array('required' => 
'Location and address'));
 
     try
     {
       $validatorSchema->clean(array(
         'authorizedFormOfName' => $this->repository->authorizedFormOfName,
-        'identifier' => $this->repository->identifier));
+        'identifier' => $this->repository->identifier,
+        'locationAndAddress' => $this->repository->getContactInformation()));
     }
     catch (sfValidatorErrorSchema $e)
     {

--

You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.


Reply via email to