Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.8, 1.9.5
-
Fix Version/s: None
-
Component/s: Database activity module
-
Labels:None
-
Affected Branches:MOODLE_18_STABLE, MOODLE_19_STABLE
Description
places_to_search_for_lang_strings supports:
'datafield_' => array('mod/data/field'),
but the code that draws up the table of fields (mod/data/field.php) has:
$field->image().' '.get_string($field->type, 'data'),
rather than something like
$field->image().' '.get_string('name', 'datafield_'.$field->type)
Unfortunately since get_string always returns a string it's hard to test first to see if the first place to look returned something before trying the next place (datafield_$type), unless we test for strpos [[ or something which is kind of ick.
Attachments
Issue Links
- has a non-specific relationship to
-
MDL-18669 get_string needs to be refactored
-
- Closed
-
- will help resolve
-
CONTRIB-1426 Database module "Multimedia file" field plugin
-
- Closed
-