]> git.mjollnir.org Git - moodle.git/commitdiff
Renamed $rid to $recordid in function call $field->update_content($rid,
authorvyshane <vyshane>
Thu, 23 Mar 2006 07:20:16 +0000 (07:20 +0000)
committervyshane <vyshane>
Thu, 23 Mar 2006 07:20:16 +0000 (07:20 +0000)
$value, $name); This fixes a bug that was causing the data_content to be
stored wrongly.

mod/data/add.php

index e332a4bc29c14cc6370e4cc6c6907937e1cc3349..f8f9b97a492a6bd1cd00b476088b98d813f4d9fd 100755 (executable)
             }
 
             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) {
                             $field = data_get_field_from_id($namearr[1], $data);
                         }
                         if ($field) {
-                            $field->update_content($rid, $value, $name);
+                            $field->update_content($recordid, $value, $name);
                         }
                     }
                 }