Bug #39248
closedfetchUserRecord don't work without username
100%
Description
e.g. fetchUserRecord($dbUser, false, 'fe_users.uid=1') don't work because $usernameClause is empty and is followed by " AND" in the sql query.
It should be set to "1=1", or $extraWhere should moved after $usernameClause.
Patch attached.
Files
Updated by Markus Klein over 12 years ago
Hi Robert!
1=1 is the only right solution, as $extraWhere is required to begin with ' AND'.
Updated by Gerrit Code Review over 12 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13041
Updated by Gerrit Code Review over 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13041
Updated by Gerrit Code Review almost 12 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13041
Updated by Gerrit Code Review over 11 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/13041
Updated by Gerrit Code Review over 11 years ago
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/19774
Updated by Robert Heel over 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 50 to 100
Applied in changeset 3e36ac4f6bbbfe29daa9560c04f16b99f254cd31.
Updated by Gerrit Code Review over 11 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at https://review.typo3.org/19775
Updated by Gerrit Code Review over 11 years ago
Patch set 2 for branch TYPO3_4-7 has been pushed to the review server.
It is available at https://review.typo3.org/19775
Updated by Gerrit Code Review over 11 years ago
Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at https://review.typo3.org/19776
Updated by Robert Heel over 11 years ago
- Status changed from Under Review to Resolved
Applied in changeset a1ba2c074176f25fdf7cb4938f013f0f3d952e54.