moodle-filter_filtercodes
moodle-filter_filtercodes copied to clipboard
Bug: Course Summary does not appear for {coursecards} or {coursecards ID#} tags in List layout's Description column
Prerequisites
- [X] I'm reporting the issue to the correct repository.
- [X] I am running the latest version of this plugin (if not, please upgrade first).
- [X] I checked the README.md and Wiki documentation but did not find my answer.
- [X] I searched to make sure that this issue had not already been reported.
- [ ] I have, or I know someone who has, the ability and willingness to test the fix on a Moodle LMS-based site.
- [X] I am submitting no more than one bug report per issue ticket (please do not submit multiple bugs in one issue ticket).
- [X] I understand that support is provided by volunteer(s).
What happened?
I am using the 2.4.3 version of Filtercodes on both Moodle Workplace 4.1 and Workplace 4.3 - I am not able to see any Course Summary data in the Description column when I use the {coursecards} tag with list layout selected in the admin interface. This information does appear once switching to Horizontal layout in the admin interface.
What do you think should have happened?
When I add {coursecards} or {coursecards 86} in a label on a Custom Page, Course page topic, or on the Dashboard I expected to see the text entered in a course's Course Summary field (in course settings) to appear in the description column. When I inspect the code in my browser, the TD cell is entirely empty. This information does populate when switching the admin settings to Horizontal View.
Course Description (aka Summary) appears in Horizontal View:
Course Description (aka Summary) does not appear in List View:
Steps to reproduce
- Login as Admin and on the Filter Codes Admin settings page, set Course cards layout to "Horizontal"
- Go to the Dashboard, or a Custom Page if in Moodle Workplace, and add two labels
- In one label paste {coursecards} and save
- Paste {coursecards 86} into the other label -- but swap 86 with any other Moodle category ID that contains courses in which some courses have some text populated in the Course Summary field.
- Save and confirm a list of courses is visible.
- Also confirm that descriptions are populated for courses that contain them.
- Return to the Filter codes Admin settings page and set Course cards layout to "List"
- Return to the Dashboard or Custom page and confirm that the list of courses is still visible.
- Confirm whether not course descriptions are populated into the Description column for courses that contain them.
Screenshots
Moodle version
4.3.2
Installed Moodle UI Language packs.
- [ ] English only
- [X] One or more other languages/regional dialects (specify below)
- [ ] Other
If other language(s), please specify
en, en_us, es, fr, pt_br, ru, uk, ar, zh_cn
Workaround
I use CSS to hid the third TH column to hide the entire Description column at this time.
Additional information
I understand this is Moodle Workplace and that support here may be limited but wanted to report this in case it's also happening on Non-Workplace.
System information
Client Device type: (e.g. Desktop, iPhone or iPad, Android phone or tablet, Other - specify) Client Operating System: (e.g. Windows, Linux, Mac OS, Android, iOS, Other - specify) Client Web Browser: (e.g. Chrome, Edge, Firefox, Safari, Safe Exam Browser, Moodle Mobile App) Server Operating System: (e.g. Windows, Linux, Mac OS, Other - specify) Server Webserver: (e.g. Apache, Nginx, IIS, Other - specify) Server PHP: (e.g. 7.3, 7.4, 8.x, Other - specify)
Code of Conduct
- [X] I have read and agree to the project's code of conduct.