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

S2FRMS-40/S2FRMS-58 child select #111

Merged
merged 17 commits into from
Jul 12, 2024
Merged

S2FRMS-40/S2FRMS-58 child select #111

merged 17 commits into from
Jul 12, 2024

Conversation

stankut
Copy link
Collaborator

@stankut stankut commented Jun 19, 2024

S2FRMS-40 child select

Stanislav Kutasevits and others added 13 commits December 22, 2023 10:32
* master:
  Preparing 3.14.1
  Changelog update
  CprFetchData adding ajax error fix
  Preparing 3.14.0
  OS-64 Setting a standard value for Automatic purge

# Conflicts:
#	CHANGELOG.md
* develop: (45 commits)
  Release 3.15.2
  ITKDev: php warning if unserialize fails in encrypt patch
  Release 3.15.1
  ITKDev: Enabled encrypt and revisions at the same time
  Added missing return type
  Release 3.15.0
  Apply coding standards
  1062: Removed empty void return docblock
  1062: Disabled default encrypt, to allow admin to set new key first
  #867: Update CHANGELOG
  #867: Cleanup
  Update CHANGELOG
  Ensure array key exists before accessing it
  Updated CHANGELOG
  Apply coding standards
  1062: Fixed title translation in os2form encrypt
  1062: Updated minor code style fixes in webform encrypt
  1062: Added notification to encrypt settings page
  1062: Fixed code style in module to enable webform encrypt
  1062: Added drush command to enable webform encrypt for all forms
  ...

# Conflicts:
#	CHANGELOG.md
@stankut stankut changed the title S2FRMS-40 child select S2FRMS-40/S2FRMS-58 child select Jun 19, 2024
Copy link
Collaborator

@rimi-itk rimi-itk left a comment

Choose a reason for hiding this comment

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

Looks good. Some minor changes requested.

@stankut
Copy link
Collaborator Author

stankut commented Jul 8, 2024

@rimi-itk added fixes, please check again

@@ -59,7 +59,7 @@ public static function mitidChildrenSelectAjax(array &$form, FormStateInterface

switch ($element['#type']) {
case 'os2forms_mitid_child_name':
$element['#value'] = !$cprLookupResult->isNameAddressProtected() ? $cprLookupResult->getName() : 'Navne- og adressebeskyttet';
$element['#value'] = !$cprLookupResult->isNameAddressProtected() ? $cprLookupResult->getName() : t('Name and address protected');
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should use StringTranslationTrait and $this->t (rather than t) if possible.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@rimi-itk
generally agree, but I could not change it in the specified file - it's used as static function, therefore using $this is impossible.
Changed it in other places/files where possible.

please check again

Copy link
Collaborator

Choose a reason for hiding this comment

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

Makes sense, @stanbellcom. One final comment: #111 (comment)

Comment on lines 16 to 26
## [3.15.4] 2024-07-08

- [#117](https://github.com/OS2Forms/os2forms/pull/117)
Encrypts all elements if encryption enabled.
- [#114](https://github.com/OS2Forms/os2forms/pull/114)
Encrypted computed elements.

## [3.15.3] 2024-06-25

- [OS-74] Replacing DAWA matrikula select with Datafordeler select

Copy link
Collaborator

Choose a reason for hiding this comment

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

These changes do not seem related to this pull request.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

these changes are not visible when you look at the pull request changes: into develop from f/S2FRMS-40_child_select:
https://github.com/OS2Forms/os2forms/pull/111/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed

It is in fact a resolution of the conflict we had in CHANGELOG.md file between two branches. If this conflict would have been resolved otherwise (meaning deleting these 10 lines), then upon merging these 10 lines would also be deleted from develop branch.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oops, my bad. Thanks for the explanation.

Comment on lines 16 to 26
## [3.15.4] 2024-07-08

- [#117](https://github.com/OS2Forms/os2forms/pull/117)
Encrypts all elements if encryption enabled.
- [#114](https://github.com/OS2Forms/os2forms/pull/114)
Encrypted computed elements.

## [3.15.3] 2024-06-25

- [OS-74] Replacing DAWA matrikula select with Datafordeler select

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oops, my bad. Thanks for the explanation.

@rimi-itk
Copy link
Collaborator

@stanbellcom, I've approved the changes. Good job!

@stankut stankut merged commit a1a5e6b into develop Jul 12, 2024
7 checks passed
@stankut stankut mentioned this pull request Jul 12, 2024
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