Changeset 316ecb7 in iPeer


Ignore:
Timestamp:
2012-12-16T03:11:49-08:00 (6 years ago)
Author:
Compass <pan.luo@…>
Branches:
3.1.x, dev, hotfix, master, pagodabox, ticket463
Children:
5d708bf
Parents:
a0781ef
Message:

Fix #423, change redirect after failed add

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/controllers/events_controller.php

    ra0781ef r316ecb7  
    335335            if ($this->Event->saveAll($this->data)) {
    336336                $this->Session->setFlash("Add event successful!", 'good');
     337                $this->redirect('index/'.$courseId);
     338                return;
    337339            } else {
    338340                $this->Session->setFlash("Add event failed.");
    339341            }
    340             $this->redirect('index/'.$courseId);
    341342        }
    342343    }
Note: See TracChangeset for help on using the changeset viewer.