From: Sam Hemelryk Date: Fri, 1 Oct 2010 08:51:26 +0000 (+0000) Subject: mod-data MDLSITE-970 Raarrrrrrrr fixed way old bug from dml conversion X-Git-Tag: v2.0.0-rc2~770 X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=commitdiff_plain;h=71762d4675678d3c637b636463faa09f4d3c1a9a;ds=sidebyside mod-data MDLSITE-970 Raarrrrrrrr fixed way old bug from dml conversion --- diff --git a/mod/data/field/menu/field.class.php b/mod/data/field/menu/field.class.php index 80069ace045..43682792830 100755 --- a/mod/data/field/menu/field.class.php +++ b/mod/data/field/menu/field.class.php @@ -60,7 +60,7 @@ class data_field_menu extends data_field_base { $usedoptions = array(); $sql = "SELECT DISTINCT content FROM {data_content} - WHERE fieldid=: AND content IS NOT NULL"; + WHERE fieldid=? AND content IS NOT NULL"; if ($used = $DB->get_records_sql($sql, array($this->field->id))) { foreach ($used as $data) { $value = $data->content;