Changeset 43dab3b in iPeer


Ignore:
Timestamp:
2012-12-21T03:11:42-08:00 (5 years ago)
Author:
Compass <pan.luo@…>
Branches:
3.1.x, dev, hotfix, master, pagodabox, ticket463
Children:
64584e3
Parents:
fe4d36a
git-author:
Compass <pan.luo@…> (12/20/2012 04:22:17 PM)
git-committer:
Compass <pan.luo@…> (12/21/2012 03:11:42 AM)
Message:

Fix #433, survey result link on event list

The survey result link on event list redirects user to survey result
page, instead of evaluation result page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/controllers/evaluations_controller.php

    rfe4d36a r43dab3b  
    4646     * @return void
    4747     */
    48     function postProcess($data)
     48    function _postProcess($data)
    4949    {
    5050        // Creates the custom in use column
     
    147147        $this->AjaxList->setUp($this->GroupEvent, $columns, $actions,
    148148            "Group.group_num", "Group.group_name",
    149             array(), $extraFilters, $recursive, "postProcess");
     149            array(), $extraFilters, $recursive, "_postProcess");
    150150    }
    151151
     
    188188            $this->Session->setFlash(__('Error: Invalid id or you do not have permission to access this event.', true));
    189189            $this->redirect('index');
     190            return;
     191        }
     192
     193        // for surveys, redirect to survey result page
     194        if (3 == $event['Event']['event_template_type_id']) {
     195            $this->redirect('/surveygroups/viewresult/'.$event['Event']['course_id'].'/'.$eventId);
     196            return;
    190197        }
    191198
Note: See TracChangeset for help on using the changeset viewer.