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

Changeset 7875


Ignore:
Timestamp:
Jul 30, 2008, 3:39:20 PM (14 years ago)
Author:
ebihara
Message:

フォームからの投稿かどうかを isMethod() によって判定するように変更

File:
1 edited

Legend:

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

    r7873 r7875  
    3131
    3232    $this->form = $this->getUser()->getAuthForm();
    33     $auth = $request->getParameter('auth');
    3433
    35     if ($auth) {
    36       $this->form->bind($auth);
    37 
     34    if ($request->isMethod('post')) {
     35      $this->form->bind($request->getParameter('auth'));
    3836      if ($this->form->isValid()) {
    3937        $this->redirectIf($this->getUser()->login($this->form), 'member/home');
    4038      }
    41 
    4239      return sfView::ERROR;
    4340    }
     
    7269    $this->profileForm->setRegisterWidgets();
    7370
    74     $member = $request->getParameter('member');
    75     $auth = $request->getParameter('auth');
    76     $profile = $request->getParameter('profile');
    77 
    78     if ($member && $auth && $profile) {
    79       $this->memberForm->bind($member);
    80       $this->authForm->bind($auth);
    81       $this->profileForm->bind($profile);
     71    if ($request->isMethod('post')) {
     72      $this->memberForm->bind($request->getParameter('member'));
     73      $this->authForm->bind($request->getParameter('auth'));
     74      $this->profileForm->bind($request->getParameter('profile'));
    8275
    8376      if ($this->memberForm->isValid() && $this->authForm->isValid() && $this->profileForm->isValid()) {
     
    142135    $this->profileForm->setConfigWidgets();
    143136
    144     $member = $request->getParameter('member');
    145     $profile = $request->getParameter('profile');
    146 
    147     if ($member && $profile) {
    148       $this->memberForm->bind($member);
    149       $this->profileForm->bind($profile);
     137    if ($request->isMethod('post')) {
     138      $this->memberForm->bind($request->getParameter('member'));
     139      $this->profileForm->bind($request->getParameter('profile'));
    150140      if ($this->memberForm->isValid() && $this->profileForm->isValid()) {
    151141        $this->memberForm->save();
Note: See TracChangeset for help on using the changeset viewer.