Language menu shows when there's only one language

Bug #1889369 reported by Peter Spicer on 2020-07-29
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Status tracked in 20.10
20.10
Low
Cecilia Vela Gurovic

Bug Description

On a fresh 20.04, we've seen cases of the language menu showing up even when only one language is actually present.

The reason is that LANGCHOICES is an array of all possible languages that can be selected, and the test in the template to show/hide the language selector is whether LANGCHOICES is empty or not.

There should be an additional flag for 'show language selector' which is true/false based on whether LANGCHOICES has > 1 entry or not in it.

Changed in mahara:
status: New → Confirmed
importance: Undecided → Low
milestone: none → 20.10.0
tags: added: bite
tags: added: bite-sized
removed: bite
no longer affects: mahara/20.04
no longer affects: mahara/19.10
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers