From: vyshane Date: Thu, 23 Mar 2006 07:20:16 +0000 (+0000) Subject: Renamed $rid to $recordid in function call $field->update_content($rid, X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a18f8e458f212a82457893d52cde5c267f54181d;p=moodle.git Renamed $rid to $recordid in function call $field->update_content($rid, $value, $name); This fixes a bug that was causing the data_content to be stored wrongly. --- diff --git a/mod/data/add.php b/mod/data/add.php index e332a4bc29..f8f9b97a49 100755 --- a/mod/data/add.php +++ b/mod/data/add.php @@ -167,7 +167,7 @@ } if (!$emptyform && $recordid = data_add_record($data, $currentgroup)) { //add instance to data_record - + /// Insert a whole lot of empty records to make sure we have them $fields = get_records('data_fields','dataid',$data->id); foreach ($fields as $field) { @@ -184,7 +184,7 @@ $field = data_get_field_from_id($namearr[1], $data); } if ($field) { - $field->update_content($rid, $value, $name); + $field->update_content($recordid, $value, $name); } } }