Skip to content

Conversation

martinyde
Copy link

Fix bug in MitidChildrenSelectAjaxBehaviour.php

  • Ensure existing cpr result before using the result to display data.
  • Fix bug where deselecting user in select caused ajax error.

@martinyde martinyde requested review from jekuaitk and rimi-itk August 26, 2025 08:03
Copy link

@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. A questions asked. A hotfix should target the https://github.com/OS2Forms/os2forms/tree/master branch.

Comment on lines +55 to +58
if (!$cprLookupResult->isSuccessful()) {
return $response;
}

Choose a reason for hiding this comment

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

Any specific reasons for not making this check right after the call to $cprPlugin->lookup (i.e. in line 47)?

@martinyde martinyde closed this Aug 26, 2025
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