Skip to content

per-user language-setting in database ignored since v3.0.3 #1027

@guilegatan

Description

@guilegatan

[x]: This is a bug and not a question.

[x]: I understand that the best way to resolve this issue is to solve it and propose a Pull Request.

Describe the bug**

The LibreBooking database contains a variable "language" in table "users". When set, it overrides the global language setting from config.php
This worked fine in the last 2.8.x release, but does not work any longer since 3.0.3 or 4.x

I am using Shibboleth-auth for SSO, and the language selection from the login-screen is therefore missing (as the login screen is omited due to SSO). To compensate, I set the language variable for certain users directly in the database as an alternative solution.

To Reproduce**

Steps to reproduce the behavior:
set variable "language" in table "users" to anything different from your global language in config.php (for example, my global setting is "en_gb", but some users are set to "de_de")

Expected behavior**

variable from database overrides config.php and UI is rendered in set language.

Screenshots**

Additional context**

worked up to last 2.8.x release
does not work since 3.0.3

Specifications

  • Red Hat Enterprise Linux release 9.7 (Plow)
  • LibreBooking version 4.1.0
  • php 8.2.30
  • MariaDB 11.4.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions