Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[dbAuth] add pkName to Columnnames if not contained inside 'dbAuth.returnedColumns' #858

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

Merged
mevdschee merged 1 commit into mevdschee:main from maheini:patch-1
Feb 26, 2022

Conversation

Copy link
Contributor

@maheini maheini commented Feb 25, 2022

If you try to change the password and $pkName isn't contained inside 'dbAuth.returnedColumns', dbAuth won't know the column containing the id and will returns this error:

Warning: Undefined array key "id" in C:\XAMPP\htdocs\api.php on line 7978

{"code":9999,"message":"Tqdev\PhpCrudApi\Database\GenericDB::updateSingle(): Argument #3 ($id) must be of type string, null given, called in C:\XAMPP\htdocs\api.php on line 7978"}

mevdschee reacted with thumbs up emoji mevdschee reacted with heart emoji
...turnedColumns'
If you try to change the password and $pkName isn't contained inside 'dbAuth.returnedColumns', dbAuth won't know the id column and returns error: 
<b>Warning</b>: Undefined array key "id" in <b>C:\XAMPP\htdocs\api.php</b> on line <b>7978</b><br />
{"code":9999,"message":"Tqdev\\PhpCrudApi\\Database\\GenericDB::updateSingle(): Argument #3 ($id) must be of type string, null given, called in C:\\XAMPP\\htdocs\\api.php on line 7978"}
@maheini maheini changed the title (削除) [dbAuth] add pkName to Columnnames if not specified inside 'dbAuth.returnedColumns' (削除ここまで) (追記) [dbAuth] add pkName to Columnnames if not contained inside 'dbAuth.returnedColumns' (追記ここまで) Feb 25, 2022
@mevdschee mevdschee self-assigned this Feb 26, 2022
Copy link
Owner

Well found and implemented. Thank you very much for your contribution.

@mevdschee mevdschee merged commit 5a376ab into mevdschee:main Feb 26, 2022
mevdschee added a commit that referenced this pull request Feb 26, 2022
Copy link
Owner

Released in v2.13.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /