diff --git a/mod/data/field/picture/mod.html b/mod/data/field/picture/mod.html
index f570b62b99c..18ccad60654 100755
--- a/mod/data/field/picture/mod.html
+++ b/mod/data/field/picture/mod.html
@@ -3,10 +3,10 @@
name()); ?>
| : | |
| : | |
-| : |
- |
| : |
- |
| : |
- |
| : |
+ |
| : |
+ |
| : |
+ |
| : |
+ |
| : |
|
| : |
maxbytes, $course->maxbytes);
diff --git a/mod/data/fields.php b/mod/data/fields.php
index 092a0457abc..42d06b34c72 100755
--- a/mod/data/fields.php
+++ b/mod/data/fields.php
@@ -267,7 +267,7 @@
echo ' | ';
$g = data_get_field($field);
- echo $g->image(); //print type icon
+ echo $g->image($data->id); //print type icon
echo ' |
';
}
}
diff --git a/mod/data/lib.php b/mod/data/lib.php
index 73cf1f216b4..f3932c03fd1 100755
--- a/mod/data/lib.php
+++ b/mod/data/lib.php
@@ -45,10 +45,12 @@ class data_field_base { //base class (text field)
}
//prints the respective type icon
- function image(){
+ function image($dataid) {
global $CFG;
- return '
';
+ $str = '';
+ $str .= '
type.'" title="'.$this->type.'" />';
+ return $str;
}
function insert_field($dataid, $type='text', $name, $des='', $autolink=0){