Course open date is not displaying

Created on 7 September 2023, about 1 year ago
Updated 8 September 2023, about 1 year ago

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

  1. Change values labels for field_course_opening_status field on admin/group/types/manage/course_advanced/fields/group.course_advanced.field_course_opening_status
  2. Create an advanced course with future start date
  3. 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

πŸ› Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024