User tests: Successful: Unsuccessful:
Hi there,
A small glitch. If we use a custom primary key name the SQL returns an error because the c.id
is hardcoded.
JLanguageAssociations::getAssociations(
'com_mytables',
'#__mytables',
'com_mytables.item',
1,
'myId',
'customAlias'
);
#1054 - Unknown column 'c.id' in 'on clause'
SELECT `c2`.`language`,
CONCAT_WS(':', `c2`.`myId`, `c2`.`customAlias`) AS `myId`,
CONCAT_WS(':', ca.id, ca.alias) AS `catid`
FROM `#__mytables` AS `c`
INNER JOIN `#__associations` AS `a` ON a.id = c.id AND a.context='com_mytables.item'
INNER JOIN `#__associations` AS `a2` ON a.key = a2.key
INNER JOIN `#__mytables` AS `c2` ON a2.id = c2.`myId`
INNER JOIN `#__categories` AS `ca` ON `c2`.`catid` = ca.id AND ca.extension = 'com_mytables'
WHERE c.myId = 1
Labels |
Added:
?
|
Easy | No | ⇒ | Yes |
Category | ⇒ | Libraries |
Please quote the variable name or make sure, that it's not attackable.
Right, my bad. Updated.
@test ok for me
Status | Pending | ⇒ | Ready to Commit |
Thanks for testing and coding moving to RTC now!
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-02-25 00:56:14 |
Labels |
Removed:
?
|
@test
OK with me. One more tester