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

Fixed Error 500 undefined variable item creating a new user. #11933

Conversation

inietov
Copy link
Collaborator

@inietov inietov commented Oct 6, 2022

Description

Some new fields were introduced to the User model making needed the Datepicker partial form in the edit. But the datepicker input uses the $item variable to access the current value of the date.

As this is the only use of that variable I pass the $user object as the $item variable. Just to put the correspondent dates in the input.

Fixes #11931

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Test Configuration:

  • PHP version: 8.1
  • MySQL version: 8.0.23
  • Webserver version: nginx/1.19.8
  • OS version: Debian 10

Checklist:

@snipe snipe merged commit cd94219 into snipe:develop Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants