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

Fix error with nested fields default locale value #556

Merged
merged 1 commit into from
Mar 16, 2020

Conversation

Trysystems
Copy link
Contributor

No description provided.

@Trysystems
Copy link
Contributor Author

Trysystems commented Feb 13, 2020

Fixes #303
Fixes #555

@mjauvin
Copy link
Contributor

mjauvin commented Mar 15, 2020

This is a very simple fix which seems to work fine to address the issue without breaking anything.

@osmanzeki would you mind testing this?

@mjauvin mjauvin self-assigned this Mar 15, 2020
@mjauvin mjauvin reopened this Mar 15, 2020
@mjauvin
Copy link
Contributor

mjauvin commented Mar 15, 2020

Replaces #322

@mjauvin
Copy link
Contributor

mjauvin commented Mar 15, 2020

This can be tested here:

https://353983ad8721.octodock.com/backend

user/pass = admin

I modified the Playground's Country model "name" field to be casts of type array and the name[description] field has been added to the translatable fields.

Feel free to experiment.

@mjauvin mjauvin merged commit d24e6b2 into rainlab:master Mar 16, 2020
mjauvin added a commit that referenced this pull request Mar 20, 2020
* runs params value through htmlspecialchars() to escape html content

* add note about escaped content in translated messages

* use Html::clean() instead of e()

* Revert "add note about escaped content in translated messages"

* escape params when translating messages; introduce transRaw method for legacy usage

* Fix for #376 (#559)

Fix for #376

* Add support for transOrderBy (#516)

Add support for transOrderBy

* update version file for 1.6.8 release

* Disable safe mode checks for ML Static Pages.

Fixes rainlab/pages-plugin#434. Refs: rainlab/pages-plugin#174, rainlab/pages-plugin@6b6b061

* Clear RainLab.Pages caches when saving a static page

Fixes rainlab/pages-plugin#404

* Register asset bundle (#560)

* make sure multi-lingual input form controls have padding-right of 44px
* register asset bundle to process less files into css files
* reposition language selector above textarea box
* fix language selector position when commentAbove is defined

* Update version file for 1.6.9 release

* Fix error with casts fields default locale value (#556)

* only call setLocale() if locale has changed (#561)

* remove unused module

Co-authored-by: Siarhei Karavai <[email protected]>
Co-authored-by: Aurélien Roy <[email protected]>
Co-authored-by: Ben Thomson <[email protected]>
Co-authored-by: Luke Towers <[email protected]>
Co-authored-by: Trysystems <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants