Fixed bug data_print_template() from /mod/data/lib.php. Extra function
argument removed.
This commit is contained in:
@@ -73,7 +73,7 @@ class data_field_checkbox extends data_field_base {
|
||||
}
|
||||
|
||||
function display_browse_field($recordid, $template) {
|
||||
|
||||
|
||||
if ($content = get_record('data_content', 'fieldid', $this->field->id, 'recordid', $recordid)){
|
||||
$contentArr = array();
|
||||
if (!empty($content->content)) {
|
||||
|
||||
+1
-1
@@ -855,7 +855,7 @@ function data_print_template($records, $data, $search, $template, $sort, $page=0
|
||||
foreach ($possiblefields as $cfield) {
|
||||
$patterns[]='/\[\['.$cfield->name.'\]\]/i';
|
||||
$g = data_get_field($cfield, $data);
|
||||
$replacement[] = highlight($search, $g->display_browse_field($cfield->id, $record->id, $template));
|
||||
$replacement[] = highlight($search, $g->display_browse_field($record->id, $template));
|
||||
unset($g);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user