Skip to content

Conversation

@RomainLvr
Copy link
Contributor

Checklist before requesting a review

Please delete options that are not relevant.

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my code.
  • I have added tests that prove my fix is effective or that my feature works.
  • This change requires a documentation update.

Description

  • It fixes !40319
  • Here is a brief description of what this PR does

Fix incorrect method call in LevelAgreementLevel::getCriterias().

The method was calling parent::getActions() instead of parent::getCriterias(), which caused the wrong set of fields to be returned for escalation level criteria.

@RomainLvr RomainLvr self-assigned this Nov 18, 2025
Copy link
Member

@cedric-anne cedric-anne left a comment

Choose a reason for hiding this comment

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

Could you rename the $action variable to $criteria?

Copy link
Member

@cedric-anne cedric-anne left a comment

Choose a reason for hiding this comment

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

Some unset() operations have to be reviewed. For instance, parent::getCriterias() does not return an entry with the affectobject key, so unset($actions['affectobject']); is not valid.
Also this issue seems to be also present on GLPI 10.0, so the fix should probably target the 10.0/bugfixes branch.

@cedric-anne cedric-anne added this to the 10.0.21 milestone Nov 19, 2025
@RomainLvr
Copy link
Contributor Author

ping @stonebuzz @Rom1-B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants