Bug #5959 - save and view takes to wrong place; merged from MOODLE_16_STABLE

This commit is contained in:
skodak 2006-06-29 06:53:53 +00:00
parent 036c0fcb1a
commit 62ce993db3

View file

@ -226,7 +226,7 @@
notify(get_string('entrysaved','data')); notify(get_string('entrysaved','data'));
if (!empty($datarecord->saveandview)) { if (!empty($datarecord->saveandview)) {
redirect($CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&rid='.$rid); redirect($CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&rid='.$recordid);
} }
} }
} }