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

TMS-937: Add title language-field for projects #175

Merged
merged 1 commit into from
May 13, 2024
Merged

TMS-937: Add title language-field for projects #175

merged 1 commit into from
May 13, 2024

Conversation

eebbi
Copy link
Contributor

@eebbi eebbi commented May 6, 2024

Severa-ID: 2247
Severa-kuvaus: TMS-937 TMS - Saavutettavuus: Projektit
Task: https://hiondigital.atlassian.net/browse/TMS-937

Description

Added a title language select-field for projects which have different language than the page language

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@eebbi eebbi requested a review from a team May 6, 2024 06:42
@HPiirainen HPiirainen self-assigned this May 6, 2024
Copy link
Contributor

@HPiirainen HPiirainen left a comment

Choose a reason for hiding this comment

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

Ok, tsekkaa huomiot

'et' => 'Viro',
'so' => 'Somali',
] )
->set_default_value( null )
Copy link
Contributor

Choose a reason for hiding this comment

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

Olisko parempi käyttää ->disallow_null()ia?

Copy link
Contributor

Choose a reason for hiding this comment

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

Samaan aikaan allow_null ja set_required näyttää vähän jännältä meinaan. Mut ei kai siinä jos se toimii.

Copy link
Contributor Author

@eebbi eebbi May 10, 2024

Choose a reason for hiding this comment

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

Ajattelin että tällä tavalla saadaan pakotettua sisällönsyöttäjä asettamaan kentälle jonkun valuen, eikä jättämään default-valueen jos ei huomioi tätä kenttää.
Tietääkseni set_required ei edes tee mitään (muuta kun punasen asteriskin) jos Select-kentältä löytyy joku muu default-value kuin null.

@eebbi eebbi merged commit fddc2f5 into master May 13, 2024
1 check passed
@eebbi eebbi deleted the TMS-937 branch May 13, 2024 18:05
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

Successfully merging this pull request may close these issues.

2 participants