mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-18542:
Just noticed a couple of oddnesses in the diff.....
This commit is contained in:
parent
cb5f2411d7
commit
344e15e666
@ -145,10 +145,6 @@
|
||||
|
||||
$ignorenames = array('MAX_FILE_SIZE','sesskey','d','rid','saveandview','cancel'); // strings to be ignored in input data
|
||||
|
||||
$ignorenames = array('MAX_FILE_SIZE','sesskey','d','rid','saveandview','cancel'); // strings to be ignored in input data
|
||||
|
||||
$ignorenames = array('MAX_FILE_SIZE','sesskey','d','rid','saveandview','cancel'); // strings to be ignored in input data
|
||||
|
||||
if ($rid) { /// Update some records
|
||||
|
||||
/// All student edits are marked unapproved by default
|
||||
|
@ -193,6 +193,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>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user