Skip to content

Conversation

martinyde
Copy link
Collaborator

@martinyde martinyde commented Sep 9, 2025

Solves #218

Prevent further action in MitidChildrenSelectAjaxBehaviour.php if no cpr is found.

if (!$cprLookupResult->isSuccessful()) {
return $response;
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

i would suggest to put the return right after the initialization, if the result is not successful

or else that can be combined with the IF statement we already have:

something like:
if ($cprPlugin->isReady() && $cprLookupResult = $cprPlugin->lookup($childCpr)) {

Copy link
Collaborator

@stankut stankut left a comment

Choose a reason for hiding this comment

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

I suggest to move the return statement, please look at the comments

@ds-bellcom ds-bellcom added the Incl. in the next release This issue/PR is incl. in the next release label Oct 7, 2025
@ds-bellcom ds-bellcom linked an issue Oct 7, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Incl. in the next release This issue/PR is incl. in the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix: MitId Children select missing a succesful check

3 participants