Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b253798
)
mod-data MDLSITE-970 Raarrrrrrrr fixed way old bug from dml conversion
author
Sam Hemelryk
<sam@moodle.com>
Fri, 1 Oct 2010 08:51:26 +0000
(08:51 +0000)
committer
Sam Hemelryk
<sam@moodle.com>
Fri, 1 Oct 2010 08:51:26 +0000
(08:51 +0000)
mod/data/field/menu/field.class.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/data/field/menu/field.class.php
b/mod/data/field/menu/field.class.php
index
80069ac
..
4368279
100755
(executable)
--- 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}
$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;
if ($used = $DB->get_records_sql($sql, array($this->field->id))) {
foreach ($used as $data) {
$value = $data->content;