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
This commit is contained in:
chschy 2012-11-13 02:43:26 +00:00
parent 2b5c3f44e9
commit 679c6035ab

View file

@ -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";
}
}