diff --git a/mod/data/fields.php b/mod/data/fields.php index 248dcabb409..94aa21c6086 100755 --- a/mod/data/fields.php +++ b/mod/data/fields.php @@ -30,7 +30,7 @@ $id = optional_param('id', 0, PARAM_INT); // course module id $d = optional_param('d', 0, PARAM_INT); // database id $fid = optional_param('fid', 0 , PARAM_INT); // update field id - $newtype = optional_param('fieldmenu','',PARAM_ALPHA); // type of the new field + $newtype = optional_param('newtype','',PARAM_ALPHA); // type of the new field $mode = optional_param('mode','',PARAM_ALPHA); $displaynotice = ''; //str to print after an operation, @@ -207,18 +207,13 @@ $field->display_edit_field(); } else { /// Display the main listing of all fields - - echo '
'; }