Problem/Motivation
When an installation is using a language diferent from English and a topic is created related with a course group, on the page to edit this topic the group field isn't loading options and it is loaded empty. When this field is empty and the user save it, the field wil be cleanned.
This happen because a hook-form-alter is removing some options using translation string on if and it never match when the installation is using languages different from English
Steps to reproduce
- Install Social Course
- Change default language
- Create a course group
- Create a topic and related with couse before
- Edit the topic and check group field
Proposed resolution
Change the check to use only English string to avoid problems with installation if others language.
Remaining tasks
N/A
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Issue fork social_course-3438928
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 #2
viniciusrp commentedI removed the translation function on check and use string in English hardcoded.
Comment #4
viniciusrp commentedComment #5
viniciusrp commentedA new solution with a better approach.
Comment #6
viniciusrp commentedNew patch fixing small errors
Comment #7
viniciusrp commentedNew patch with a fix for multiple array
Comment #10
robertragas commentedWill be landing in 5.1.5 and 5.2.2
Comment #11
robertragas commented