AntonLV 10 лет назад
Родитель
Сommit
d78defd047
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      studio/template/scripts/BxBaseStudioPolyglotKeys.php

+ 2 - 1
studio/template/scripts/BxBaseStudioPolyglotKeys.php

@@ -112,7 +112,7 @@ class BxBaseStudioPolyglotKeys extends BxDolStudioPolyglotKeys
         if($oForm->isSubmittedAndValid()) {
             $mixedResult = $this->add($oForm);
 
-            if(is_int($mixedResult))
+            if(is_numeric($mixedResult))
                 $aRes = array('grid' => $this->getCode(false), 'blink' => $mixedResult);
             else
                 $aRes = array('msg' => $mixedResult);
@@ -187,6 +187,7 @@ class BxBaseStudioPolyglotKeys extends BxDolStudioPolyglotKeys
                 'name' => $sName,
                 'caption' => $aLanguage['title'],
                 'value' => isset($aKey['strings'][$aLanguage['name']]) ? $aKey['strings'][$aLanguage['name']]['string'] : '',
+            	'code' => 1,
                 'db' => array (
                     'pass' => 'XssHtml',
                 ),