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

Warnings logged when Invitation Added #10859

Open
defstat opened this issue Jan 30, 2025 · 1 comment
Open

Warnings logged when Invitation Added #10859

defstat opened this issue Jan 30, 2025 · 1 comment
Assignees

Comments

@defstat
Copy link
Contributor

defstat commented Jan 30, 2025

Describe the bug
There are some warnings appearing in the PHP logs like

PHP Warning:  Undefined array key "userId" in ojs-main/lib/pkp/api/v1/invitations/InvitationController.php on line 260

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'setting->Users & Roles'
  2. Click on 'Invite to a role'
  3. Add an email that does not belong to an existing user.
  4. Click on 'Search User'
  5. See the warning in PHP error log

What application are you using?
OJS, OMP or OPS main branch


PR

pkp-lib: #10860

@defstat defstat self-assigned this Jan 30, 2025
defstat added a commit to defstat/pkp-lib that referenced this issue Jan 30, 2025
@defstat
Copy link
Contributor Author

defstat commented Jan 30, 2025

@ewhanson this is a minor change in the API, are you able to do a code review on it?

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

No branches or pull requests

1 participant