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

bugfix: passed 'rule_id' MUST be of type int #4798

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

utesche
Copy link
Contributor

@utesche utesche commented Jul 18, 2022

otherwise a TypeError Exception is raised:

TypeError thrown with message "Argument 1 passed to ilLDAPRoleAssignmentRule::_getInstanceByRuleId() must be of the type int, string given, called in /.../Services/LDAP/classes/class.ilLDAPRoleAssignmentRules.php on line 103"

Stacktrace:
#14 TypeError in /.../Services/LDAP/classes/class.ilLDAPRoleAssignmentRule.php:62
#13 ilLDAPRoleAssignmentRule:_getInstanceByRuleId in /.../Services/LDAP/classes/class.ilLDAPRoleAssignmentRules.php:103
#12 ilLDAPRoleAssignmentRules:getAssignmentsForUpdate in /.../Services/LDAP/classes/class.ilLDAPAttributeToUser.php:140


otherwise a TypeError Exception is raised:

TypeError thrown with message "Argument 1 passed to ilLDAPRoleAssignmentRule::_getInstanceByRuleId() must be of the type int, string given, called in /.../Services/LDAP/classes/class.ilLDAPRoleAssignmentRules.php on line 103"

Stacktrace:
ILIAS-eLearning#14 TypeError in /.../Services/LDAP/classes/class.ilLDAPRoleAssignmentRule.php:62
ILIAS-eLearning#13 ilLDAPRoleAssignmentRule:_getInstanceByRuleId in /.../Services/LDAP/classes/class.ilLDAPRoleAssignmentRules.php:103
ILIAS-eLearning#12 ilLDAPRoleAssignmentRules:getAssignmentsForUpdate in /.../Services/LDAP/classes/class.ilLDAPAttributeToUser.php:140
@mjansenDatabay mjansenDatabay added bugfix php Pull requests that update Php code labels Jul 18, 2022
@mjansenDatabay
Copy link
Contributor

Thx @utesche

@mjansenDatabay mjansenDatabay merged commit 5e90127 into ILIAS-eLearning:trunk Jan 4, 2023
@utesche utesche deleted the patch-5 branch February 15, 2023 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants