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

Add possibility to make languages not mandatory #472

Merged

Conversation

matthiashamacher
Copy link
Contributor

Changes

Resolves pimcore/pimcore#2958

Additional infos

This uses the logic introduced by pimcore/pimcore#16835 to make languages not mandatory. We add a checkbox in the System Setting where the user can set which languages should be mandatory. In the display logic of the localizedfield fields we update the mandatory state of the fields according to the languages mandatory need.

@mcop1 mcop1 added this to the 1.5.0 milestone Apr 12, 2024
@mcop1 mcop1 self-assigned this Apr 12, 2024
Copy link
Contributor

@mcop1 mcop1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additionally it seems to break the system settings ui now. Could you please have a look?

src/Controller/Admin/IndexController.php Show resolved Hide resolved
Signed-off-by: Matthias Hamacher <[email protected]>

# Conflicts:
#	translations/admin_ext.en.yaml
@matthiashamacher
Copy link
Contributor Author

I cannot find any problems with the system settings ui. What exactly did break? I had an merge conflict in the translations, that is fixed now, maybe it was that?

Signed-off-by: Matthias Hamacher <[email protected]>
src/Controller/Admin/IndexController.php Outdated Show resolved Hide resolved
src/Controller/Admin/IndexController.php Outdated Show resolved Hide resolved
@mcop1
Copy link
Contributor

mcop1 commented Apr 18, 2024

I cannot find any problems with the system settings ui. What exactly did break? I had an merge conflict in the translations, that is fixed now, maybe it was that?

It is working now, sorry, seems like it was a problem on my end of the side.

matthiashamacher and others added 2 commits April 20, 2024 10:39
Signed-off-by: Matthias Hamacher <[email protected]>
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@mcop1 mcop1 merged commit c783da2 into pimcore:1.x Apr 26, 2024
8 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Only one language mandatory
4 participants