View Issue Details

IDProjectCategoryView StatusLast Update
0004715OXID eShop (all versions)1.09. Integrations: Facebook, Trusted Shops, Shop lupe, Econdapublic2017-12-01 16:49
ReporterWBL_BjoernLange Assigned To 
PriorityurgentSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Summary0004715: Sideeffect of widget/facebook/init.tpl and oxscript
DescriptionThe capture

            [{capture name="facebookInit"}]
                [{oxscript include="js/libs/cookie/jquery.cookie.js"}]
                [{assign var="sFbAppId" value=$oViewConf->getFbAppId()}]
                [{assign var="sLocale" value="FACEBOOK_LOCALE"|oxmultilangassign}]
                [{assign var="sLoginUrl" value=$oView->getLink()|oxaddparams:"fblogin=1"}]
                [{assign var="sLogoutUrl" value=$oViewConf->getLogoutLink()}]
                [{oxscript add="$('.oxfbenable').click( function() { oxFacebook.showFbWidgets('`$sFbAppId`','`$sLocale`','`$sLoginUrl`','`$sLogoutUrl`'); return false;});"}]
                [{oxscript add='jQuery(".oxfbinfo").click(function() {jQuery("#fbModal").reveal();})'}]
            [{/capture}]

[{oxscript add="`$smarty.capture.facebookInit`"}]


Has no output and so smarty_function_oxscript thinks, that the javascript must be echoed. This oxscript-call with an empty string as the add-parameter, is like the oxscript-Call in the layout-File for outputting the javascript, because "if ( $params['add'] ) {" evaluates to false with an empty string.
TagsFacebook, JavaScript
ThemeNot defined
BrowserAll
PHP VersionNot defined
Database VersionNot defined

Activities

vilma_liorensaityte

2017-12-01 16:49

reporter   ~0012304

MK: With v6 this widget is removed and the bug can be closed.