Problem/Motivation
Course "open date" isn't displaying for other then English languages. Thats because group--course-basic--hero.html.twig template has condition by field_course_opening_status boolean field label rather then field value.
But field labels can be translated (or even overridden), so we should not relay on field label and use value instead.
Steps to reproduce
- Change values labels for
field_course_opening_statusfield on admin/group/types/manage/course_advanced/fields/group.course_advanced.field_course_opening_status - Create an advanced course with future start date
- Visit course view page and see that start date disappears on "hero" section
Proposed resolution
Change condition checks from label to value
Remaining tasks
n/a
User interface changes
n/a
API changes
n/a
Data model changes
n/a
Issue fork social_course-3385849
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
vnech commentedComment #6
ribelTested and approved.
Merged and released in version 5.0.10.