Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computed field calc when user lang different from default lang #144

Open
lucaslaurent04 opened this issue Jun 4, 2024 · 0 comments
Open

Comments

@lucaslaurent04
Copy link
Collaborator

If the user's lang differs from the default lang, there is a bug when saving a computed field value in the database table.

First the value is loaded and stored in cache in fr lang (user's lang)

$om->cache[$table_name][$oid][$lang][$field] = $value;

Then the orm try to store the cached value in en lang (default lang)

$value = (isset($om->cache[$table_name][$oid][$lang][$field]))?$om->cache[$table_name][$oid][$lang][$field]:null;

The value stored is NULL because no value is found for en

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant