Share » Forums » General » [Bug]problem with JavaScriptSettings[]

[Bug]problem with JavaScriptSettings[]

[Bug]problem with JavaScriptSettings[]

Wednesday 26 September 2007 8:42:21 am - 2 replies

Author Message

Lagardere Active

Wednesday 26 September 2007 9:01:14 am

i added

$this->BlockValues["JavaScriptSettings"]["JavaScriptList"] = array_unique($this->BlockValues["JavaScriptSettings"]["JavaScriptList"]);

in line 686 in the file lib/ezutils/classes/ezini.php

to filter the double js.

any solution else ?

Xavier Serna

Wednesday 26 September 2007 9:17:11 am

Hi,

this is a known problem using settings in extensions, that get loaded twice, and you get your scripts and css included twice.
To prevent this you have to reset the array previously of adding items to it, using

JavaScriptList[]

A bug report can be found here:
http://issues.ez.no/IssueView.php?Id=10717&ProjectId=3

hth!

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu