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

Changeset 12957


Ignore:
Timestamp:
Sep 25, 2009, 9:08:14 PM (13 years ago)
Author:
ShogoKawahara
Message:

#4330:fixed opMemberProfileForm and MemberProfileTable?, bacause it didn't filter members from all profiles on the pc_backend

Location:
OpenPNE3/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_backend/modules/member/actions/actions.class.php

    r12928 r12957  
    3737    $params = $request->getParameter('member', array());
    3838
    39     $this->form = new opMemberProfileSearchForm(array(), array('use_id' => true));
     39    $this->form = new opMemberProfileSearchForm(array(), array('use_id' => true, 'is_check_public_flag' => false));
    4040    $this->form->bind($params);
    4141
  • OpenPNE3/trunk/lib/form/searchForm/opMemberProfileSearchForm.class.php

    r12705 r12957  
    3232    $validators = array();
    3333
    34     if ($this->getOption('use_id'))
     34    if ($this->getOption('is_use_id'))
    3535    {
    3636      $widgets += array('id' => new sfWidgetFormInput());
     
    106106    $q = Doctrine::getTable('Member')->createQuery();
    107107
    108     if ($this->getOption('use_id'))
     108    if ($this->getOption('is_use_id'))
    109109    {
    110110      $this->addIdColumnQuery($q, $this->getValue('id'));
     
    141141    }
    142142
    143     $ids = Doctrine::getTable('MemberProfile')->searchMemberIds($profileValues, $ids);
     143    $ids = Doctrine::getTable('MemberProfile')->searchMemberIds($profileValues, $ids, $this->getOption('is_check_public_flag', true));
    144144
    145145    if ($isWhere)
  • OpenPNE3/trunk/lib/model/doctrine/MemberProfileTable.class.php

    r12936 r12957  
    7979  }
    8080
    81   public function searchMemberIds($profile = array(), $ids = null)
     81  public function searchMemberIds($profile = array(), $ids = null, $isCheckPublicFlag = true)
    8282  {
    8383    foreach ($profile as $key => $value)
     
    128128      }
    129129
    130       $ids = $this->filterMemberIdByProfile($ids, $column, $value, $item);
     130      $publicFlag = ($isCheckPublicFlag) ? 1 : null;
     131      $ids = $this->filterMemberIdByProfile($ids, $column, $value, $item, $publicFlag);
    131132    }
    132133
Note: See TracChangeset for help on using the changeset viewer.