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

Changeset 10467


Ignore:
Timestamp:
Jan 27, 2009, 11:24:10 AM (12 years ago)
Author:
ogawa
Message:

#3469:fixed community editting unique check for the name

Location:
OpenPNE3/trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/action/sfOpenPNECommunityAction.class.php

    r10003 r10467  
    5757    if ($request->isMethod('post'))
    5858    {
    59       $this->form->bind($request->getParameter('community'), $request->getFiles('community'));
     59      $params = $request->getParameter('community');
     60      $params['id'] = $this->id;
     61      $this->form->bind($params, $request->getFiles('community'));
    6062      if ($this->form->isValid())
    6163      {
  • OpenPNE3/trunk/lib/form/CommunityForm.class.php

    r10458 r10467  
    2222  public function configure()
    2323  {
    24     unset($this['created_at'], $this['updated_at'], $this['file_id'], $this['id']);
     24    unset($this['created_at'], $this['updated_at'], $this['file_id']);
     25    unset($this->widgetSchema['id']);
    2526
    2627    $this->setValidator('name', new sfValidatorString(array('max_length' => 64, 'trim' => true)));
Note: See TracChangeset for help on using the changeset viewer.