Conjunto b2737e9 en sipei


Ignorar:
Fecha y hora:
25/09/2012 11:55:53 (hace 12 años)
Autor:
Luis Peña <lpena@…>
Branches:
master, drupal-6.x
Children:
ffa4103
Parents:
314054b
Mensaje:

Actualizacion en datos_institucionales, module y view

Ubicación:
modulos/datos_institucionales
Ficheros:
2 editados

Leyenda

No modificado
Añadido
Eliminado
  • modulos/datos_institucionales/datos_institucionales.module

    r44f67f8 rb2737e9  
    132132      foreach($arreglo as $id => $value) {
    133133        $items = array();
    134         foreach($funcion_value->$id as $value) {
    135           if ($value['value']) {
    136             $items[] = $value['value'];
     134        if (is_array($funcion_value->$id) && count($funcion_value->$id)) {
     135          foreach($funcion_value->$id as $value) {
     136            if ($value['value']) {
     137              $items[] = $value['value'];
     138            }
    137139          }
    138140        }
     
    528530      }
    529531      $items = array();
    530       foreach($funcion_value->field_funciones_valores as $value) {
    531         if ($value['value']) {
    532           $items[] = $value['value'];
     532      if (is_array($funcion_value->field_funciones_valores) && count($funcion_value->field_funciones_valores)) {
     533        foreach($funcion_value->field_funciones_valores as $value) {
     534          if ($value['value']) {
     535            $items[] = $value['value'];
     536          }
    533537        }
    534538      }
     
    537541      }
    538542      $items = array();
    539       foreach($funcion_value->field_funciones_custom as $value) {
    540         if ($value['value']) {
    541           $items[] = $value['value'];
     543      if (is_array($funcion_value->field_funciones_custom) && count($funcion_value->field_funciones_custom)) {
     544        foreach($funcion_value->field_funciones_custom as $value) {
     545          if ($value['value']) {
     546            $items[] = $value['value'];
     547          }
    542548        }
    543549      }
     
    10531059    );
    10541060    $ente_has_acceso = TRUE;
    1055     if ($ente_has_acceso) {
     1061    $accesso = datos_institucionales_obtiene_acceso_proceso('datos_actividades_eticas', $ente_planificador, $ente);
     1062    if ($accesso) {
    10561063    $count_headers_table += 1;
    10571064      $headers_table[] = array(
     
    10601067      );
    10611068    }
    1062     $accesso = datos_institucionales_obtiene_acceso_proceso('datos_actividades_eticas', $ente_planificador, $ente);
    10631069    $rows = array();
    10641070    $estado_etica = FALSE;
     
    10691075        //Principios
    10701076        $items = array();
    1071         foreach($funcion_value->field_funciones_principios as $value) {
    1072           if ($value['value']) {
    1073             $items[] = $value['value'];
     1077        if (is_array($funcion_value->field_funciones_principios) && count($funcion_value->field_funciones_principios)){
     1078          foreach($funcion_value->field_funciones_principios as $value) {
     1079            if ($value['value']) {
     1080              $items[] = $value['value'];
     1081            }
    10741082          }
    10751083        }
     
    10801088        //Valores
    10811089        $items = array();
    1082         foreach($funcion_value->field_funciones_valores as $value) {
    1083           if ($value['value']) {
    1084             $items[] = $value['value'];
     1090        if (is_array($funcion_value->field_funciones_valores) && count($funcion_value->field_funciones_valores)){
     1091          foreach($funcion_value->field_funciones_valores as $value) {
     1092            if ($value['value']) {
     1093              $items[] = $value['value'];
     1094            }
    10851095          }
    10861096        }
     
    10911101        //Customización
    10921102        $items = array();
    1093         foreach($funcion_value->field_funciones_custom as $value) {
    1094           if ($value['value']) {
    1095             $items[] = $value['value'];
     1103        if (is_array($funcion_value->field_funciones_custom) && count($funcion_value->field_funciones_custom)){
     1104          foreach($funcion_value->field_funciones_custom as $value) {
     1105            if ($value['value']) {
     1106              $items[] = $value['value'];
     1107            }
    10961108          }
    10971109        }
     
    26232635        //Customización
    26242636        $items = array();
    2625         foreach($funcion_value->field_funciones_custom as $value) {
    2626           $items[] = $value['value'];
     2637        if (is_array($funcion_value->field_funciones_custom) && count($funcion_value->field_funciones_custom)) {
     2638          foreach($funcion_value->field_funciones_custom as $value) {
     2639            $items[] = $value['value'];
     2640          }
    26272641        }
    26282642        $row[] = array('data' => theme('item_list', $items), );
  • modulos/datos_institucionales/views/datos_institucionales.views_default.inc

    r44f67f8 rb2737e9  
    18481848      'operator' => 'or',
    18491849      'value' => array(
    1850         '1 ' => '1 ',
     1850        '1' => '1',
    18511851      ),
    18521852      'group' => '0',
Nota: Vea TracChangeset para ayuda en el uso del visor de conjuntos de cambios.