From ff4e221c6aeb29142a5cf15712b2e94a1829021e Mon Sep 17 00:00:00 2001 From: Ariel Ponce Date: Tue, 10 Mar 2015 09:50:12 +0100 Subject: [PATCH] Fix relation controller JS issue on Chrome When loading a relation, an "Uncaught token :" javascript error is thrown when using Chrome, which makes the select all checkbox not to work and most of the JS on the page to fail. --- modules/backend/behaviors/RelationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/backend/behaviors/RelationController.php b/modules/backend/behaviors/RelationController.php index 3af39e8a8..92a1bc9dd 100644 --- a/modules/backend/behaviors/RelationController.php +++ b/modules/backend/behaviors/RelationController.php @@ -943,7 +943,7 @@ class RelationController extends ControllerBehavior $config->showCheckboxes = $this->getConfig('view[showCheckboxes]', !$this->readOnly); $defaultOnClick = sprintf( - "$.oc.relationBehavior.clickViewListRecord(:id, '%s', '%s')", + "$.oc.relationBehavior.clickViewListRecord(':id', '%s', '%s')", $this->field, $this->relationGetSessionKey() );