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

Fix User Admin screen Google Email for Login does not save when creating new user #7472

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

AlceaDev
Copy link
Contributor

Fixes #7393

Short description of what this resolves:

Not exist insert statement for google_signin_email column in users table.
So add insert statement value to column in interface/usergroup/usergroup_admin.php.

@AlceaDev AlceaDev changed the title Fix issue #7393 Fix User Admin screen Google Email for Login does not save when creating new user Jun 11, 2024
@@ -351,6 +351,7 @@
"', mname = '" . add_escape_custom(trim((isset($_POST['mname']) ? $_POST['mname'] : ''))) .
"', lname = '" . add_escape_custom(trim((isset($_POST['lname']) ? $_POST['lname'] : ''))) .
"', suffix = '" . add_escape_custom(trim((isset($_POST['suffix']) ? $_POST['suffix'] : ''))) .
"', google_signin_email = '" . add_escape_custom(trim((isset($_POST['google_signin_email']) ? $_POST['google_signin_email'] : ''))) .
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

This could be written as
add_escape_custom(trim($_POST['google_signin_email'] ?? ''))
What you have is acceptable as well so, is this done?

Copy link
Contributor Author

@AlceaDev AlceaDev Jun 12, 2024

Choose a reason for hiding this comment

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

Thank you for your review!
That's better for me.If possible, want rewrite other same descriptions in this insert statement. Could I do this?

Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Naw, I'd leave it to stay consistent with the other fields and changing all of them is probably best left as is because less of a chance to introduce an error during change.
Let me know if this is all and I'll merge and put in patch 2. Thanks for the fix!

Copy link
Contributor Author

@AlceaDev AlceaDev Jun 12, 2024

Choose a reason for hiding this comment

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

OK! This is all , So request to merge when you're free.
I appreciate that you gave me contributing chance!

@sjpadgett sjpadgett merged commit c4dc688 into openemr:master Jun 12, 2024
25 checks passed
sjpadgett added a commit to sjpadgett/openemr that referenced this pull request Jun 16, 2024
…hanges

* 'master' of https://github.com/openemr/openemr:
  fix: use temp files dir for htmlpurify serializer path (openemr#7476)
  fix: webroot typo documents-go portal home (openemr#7474)
  add insert value to google_signin_email column in users table (openemr#7472)
sjpadgett pushed a commit to sjpadgett/openemr that referenced this pull request Jun 16, 2024
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

Successfully merging this pull request may close these issues.

bug: User Admin screen Google Email for Login does not save when creating new user
2 participants