Commit 529964f
authored
[dbAuth] add pkName to Columnnames if not specified inside 'dbAuth.returnedColumns'
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"}1 parent a8d7605 commit 529964f
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
| |||
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
124 | 131 | | |
125 | 132 | | |
126 | 133 | | |
| |||
0 commit comments