mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
MDL-53402 mod_data: field values of 0 are now displayed.
This commit is contained in:
parent
9b5cf165b4
commit
4937a0616f
@ -177,7 +177,7 @@ class data_field_checkbox extends data_field_base {
|
||||
global $DB;
|
||||
|
||||
if ($content = $DB->get_record('data_content', array('fieldid'=>$this->field->id, 'recordid'=>$recordid))) {
|
||||
if (empty($content->content)) {
|
||||
if (strval($content->content) === '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -235,7 +235,7 @@ class data_field_multimenu extends data_field_base {
|
||||
global $DB;
|
||||
|
||||
if ($content = $DB->get_record('data_content', array('fieldid'=>$this->field->id, 'recordid'=>$recordid))) {
|
||||
if (empty($content->content)) {
|
||||
if (strval($content->content) === '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user