Development

Changeset 14320

You must first sign up to be able to contribute.

Changeset 14320

Show
Ignore:
Timestamp:
12/25/08 15:19:56 (6 years ago)
Author:
boutell
Message:

Oops: I was calling a method defined in my application. Caught it when I
built a second application.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfApplyPlugin/trunk/modules/sfApply/lib/BasesfApplyActions.class.php

    r13802 r14320  
    144144  { 
    145145    $validate = $this->getRequestParameter('validate'); 
    146     $sfGuardUser = sfGuardUserProfilePeer::retrieveUserByValidate($validate); 
     146    $c = new Criteria(); 
     147    // 0.6.3: oops, this was in sfGuardUserProfilePeer in my application 
     148    // and therefore never got shipped with the plugin until I built 
     149    // a second site and spotted it! 
     150    $c->add(sfGuardUserProfilePeer::VALIDATE, $validate); 
     151    $c->addJoin(sfGuardUserPeer::ID, sfGuardUserProfilePeer::USER_ID); 
     152    $sfGuardUser = sfGuardUserPeer::doSelectOne($c); 
    147153    if (!$sfGuardUser) 
    148154    {