From a18f8e458f212a82457893d52cde5c267f54181d Mon Sep 17 00:00:00 2001 From: vyshane Date: Thu, 23 Mar 2006 07:20:16 +0000 Subject: [PATCH] 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. --- mod/data/add.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } } -- 2.39.5