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

Command icon 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

viniciusrp created an issue. See original summary.

viniciusrp’s picture

I removed the translation function on check and use string in English hardcoded.

viniciusrp’s picture

Status: Active » Needs review
viniciusrp’s picture

A new solution with a better approach.

viniciusrp’s picture

StatusFileSize
new5.48 KB

New patch fixing small errors

viniciusrp’s picture

New patch with a fix for multiple array

robertragas’s picture

Will be landing in 5.1.5 and 5.2.2

robertragas’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.