Commits

Anonymous committed 887c3ff

  • Participants
  • Parent commits 690fc36

Comments (0)

Files changed (1)

views/idioma/index.php

             (
             'label' => Yii::t('int_GRL_VER','Ver'),
             'url' => 'Yii::app()->controller->createUrl("view",array("id"=>$data["' . $cmpCodigo . '"]))',
+            'visible' => '$data->idiCodigo != Yii::app()->sourceLanguage && $data->idiBaja == null',
             'imageUrl' => $sRutaTema . "view.png",
         ),
         'editar' => array
             (
             'label' => Yii::t('int_GRL_MODIFICAR', 'Modificar'),
             'url' => 'Yii::app()->controller->createUrl("update",array("id"=>$data->' . $cmpCodigo . '))',
-            'visible' => '$data->idiCodigo != "es"',
+            'visible' => '$data->idiCodigo != Yii::app()->sourceLanguage && $data->idiBaja == null',
             'imageUrl' => $sRutaTema . "update.png",
         ),
         'borrar' => array
             'url' => 'Yii::app()->controller->createUrl("delete",array("id"=>$data->' . $cmpCodigo . '))',
             //'url' => '#',
             'imageUrl' => $sRutaTema . 'delete.png',
-            'visible' => '$data->idiCodigo != "es" && $data->idiBaja == null',
+            'visible' => '$data->idiCodigo != Yii::app()->sourceLanguage && $data->idiBaja == null',
             'click' => 'function(data) 
               {        
                 if(!confirm(' . CJavaScript::encode(Yii::t('int_GRL_ELIMINAR_PREG', '¿Está seguro que desea eliminar este registro?')) . ')) return false;