-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
3.6.5, 3.7.1, 3.8.6, 3.9.3, 3.10
-
MOODLE_310_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
-
MDL-66386-master
-
-
Easy
-
To reproduce, follow those exact steps on the testing instructions, on step 7 an error will be raised.
The error is raised because the database cannot determine which field use as a title on the database.
Notice: Trying to get property of non-object in /mod/data/locallib.php on line 1004
|
|
Warning:
|
require_once(/mod/data/field//field.class.php): |
failed to open stream: No such file or directory in /mod/data/locallib.php on line 1004 |
|
|
Fatal error: require_once(): Failed opening required |
'/mod/data/field//field.class.php'
|
|
(include_path='/lib/pear:.:/usr/local/Cellar/php@7.1/7.1.22/share/php@7.1/pear') |
in /mod/data/locallib.php on line 1004
|
On mod_data_get_tagged_records function calls data_get_tag_title_field but no return is done. So when calling data_get_tag_title_for_entry and error is raised.
To solve that I think it should check if data_get_tag_title_field returns empty and have a default or none $pagename when this happens.
- Discovered while testing
-
MOBILE-2201 Support tags in the app
-
- Closed
-