From 679c6035abc0c0aa147d94e5ad633e480ad349e6 Mon Sep 17 00:00:00 2001 From: chschy Date: Tue, 13 Nov 2012 02:43:26 +0000 Subject: [PATCH] The group_srl can be in both string("123")/integer(123) form depending on the DB connector. So force it to string to make the inArray function work correctly git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12191 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/menu/tpl/sitemap.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/menu/tpl/sitemap.html b/modules/menu/tpl/sitemap.html index 24a00c5ab..b9d3dae28 100644 --- a/modules/menu/tpl/sitemap.html +++ b/modules/menu/tpl/sitemap.html @@ -1415,7 +1415,7 @@ jQuery(function($){ // can't paste into a child menu of the source menu var sParentSrl = $._xeAdminVar.sSelectedMenuSrl; do{ - if(sParentSrl === $._xeAdminVar.sCopySourceMenuSrl){ + if(sParentSrl == $._xeAdminVar.sCopySourceMenuSrl){ alert(xe.lang.msg_target_is_sub_of_origin); return; } @@ -2069,7 +2069,7 @@ jQuery(function($){ $node.find('._groups').show(); - if(aGroup && $.inArray(htInfo.group_srl, aGroup) !== -1){ + if(aGroup && $.inArray("" + htInfo.group_srl, aGroup) !== -1){ sChecked = "checked"; } }