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

Kaavamääräysryhmän lomakkeen otsikon dynaaminen nimeäminen #187

Merged
merged 2 commits into from
Feb 25, 2025

Conversation

Mtk112
Copy link
Contributor

@Mtk112 Mtk112 commented Feb 7, 2025

Dynaamisesti vaihtaa kaavamääräysryhmän lomakkeen otsikon riippuen luodaanko uutta vai editoidaanko olemassaolevaa.

@Mtk112 Mtk112 added the enhancement New feature or request label Feb 7, 2025
Copy link
Collaborator

@nmaarnio nmaarnio left a comment

Choose a reason for hiding this comment

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

This works, but I think it could be better to change the title within the form to be more future-proof (if the form is opened from another place in code). There is already a check whether the given regulation group model has an id, and we could perform the renaming there (so plan_regulation_group_form.py line 107->)

@nmaarnio nmaarnio force-pushed the 156-kaavamaarayksen-otsikointi-dynaamisesti branch 2 times, most recently from c9f8c0b to cc92272 Compare February 25, 2025 07:55
Moved renaming of plan regulation group from's title to already existing id check.
@nmaarnio nmaarnio force-pushed the 156-kaavamaarayksen-otsikointi-dynaamisesti branch from cc92272 to 5ad1ecd Compare February 25, 2025 07:58
@nmaarnio nmaarnio merged commit cfc0fd0 into main Feb 25, 2025
7 checks passed
@nmaarnio nmaarnio deleted the 156-kaavamaarayksen-otsikointi-dynaamisesti branch February 25, 2025 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kaavamääräysryhmän 'nimi' -> 'otsikko', kaavamääräysryhmän lomakkeen otsikointi dynaamisesti
2 participants