Conjunto b2737e9 en sipei
- Fecha y hora:
- 25/09/2012 11:55:53 (hace 12 años)
- Branches:
- master, drupal-6.x
- Children:
- ffa4103
- Parents:
- 314054b
- Ubicación:
- modulos/datos_institucionales
- Ficheros:
-
- 2 editados
Leyenda
- No modificado
- Añadido
- Eliminado
-
modulos/datos_institucionales/datos_institucionales.module
r44f67f8 rb2737e9 132 132 foreach($arreglo as $id => $value) { 133 133 $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 } 137 139 } 138 140 } … … 528 530 } 529 531 $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 } 533 537 } 534 538 } … … 537 541 } 538 542 $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 } 542 548 } 543 549 } … … 1053 1059 ); 1054 1060 $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) { 1056 1063 $count_headers_table += 1; 1057 1064 $headers_table[] = array( … … 1060 1067 ); 1061 1068 } 1062 $accesso = datos_institucionales_obtiene_acceso_proceso('datos_actividades_eticas', $ente_planificador, $ente);1063 1069 $rows = array(); 1064 1070 $estado_etica = FALSE; … … 1069 1075 //Principios 1070 1076 $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 } 1074 1082 } 1075 1083 } … … 1080 1088 //Valores 1081 1089 $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 } 1085 1095 } 1086 1096 } … … 1091 1101 //Customización 1092 1102 $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 } 1096 1108 } 1097 1109 } … … 2623 2635 //Customización 2624 2636 $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 } 2627 2641 } 2628 2642 $row[] = array('data' => theme('item_list', $items), ); -
modulos/datos_institucionales/views/datos_institucionales.views_default.inc
r44f67f8 rb2737e9 1848 1848 'operator' => 'or', 1849 1849 'value' => array( 1850 '1 ' => '1',1850 '1' => '1', 1851 1851 ), 1852 1852 'group' => '0',
Nota: Vea TracChangeset
para ayuda en el uso del visor de conjuntos de cambios.