MDL-18542:
Replacing another (intermediate) fix.
This commit is contained in:
@@ -166,6 +166,11 @@ class data_field_base { // Base class for Database Field Types (see field/*/
|
||||
$content = '';
|
||||
}
|
||||
|
||||
// beware get_field returns false for new, empty records MDL-18567
|
||||
if ($content===false) {
|
||||
$content='';
|
||||
}
|
||||
|
||||
$str = '<div title="'.s($this->field->description).'">';
|
||||
$str .= '<input style="width:300px;" type="text" name="field_'.$this->field->id.'" id="field_'.$this->field->id.'" value="'.s($content).'" />';
|
||||
$str .= '</div>';
|
||||
|
||||
Reference in New Issue
Block a user