ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 9892


Ignore:
Timestamp:
Jan 5, 2009, 5:19:48 AM (12 years ago)
Author:
ebihara
Message:

#3349:opAuthValidatorMemberConfig allows a field is different from a config name now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/validator/opAuthValidatorMemberConfig.class.php

    r9798 r9892  
    3434  protected function configure($options = array(), $messages = array())
    3535  {
     36    $this->addOption('field_name');
    3637    $this->addRequiredOption('config_name');
    3738    $this->setMessage('invalid', 'ID is not a valid.');
     
    4546    opActivateBehavior::disable();
    4647    $configName = $this->getOption('config_name');
    47     $memberConfig = MemberConfigPeer::retrieveByNameAndValue($configName, $values[$configName]);
     48    $fieldName = $this->getOption('field_name', $configName);
     49    $memberConfig = MemberConfigPeer::retrieveByNameAndValue($configName, $values[$fieldName]);
    4850    if ($memberConfig)
    4951    {
Note: See TracChangeset for help on using the changeset viewer.