|
@@ -218,7 +218,7 @@ function tripal_chado_views_views_data() {
|
|
foreach ($fields as $column => $attrs) {
|
|
foreach ($fields as $column => $attrs) {
|
|
$base_fields[$column] = array(
|
|
$base_fields[$column] = array(
|
|
'column_name' => $column,
|
|
'column_name' => $column,
|
|
- 'type' => $attrs['type'],
|
|
|
|
|
|
+ 'type' => (isset($attrs['type'])) ? $attrs['type'] : 'text',
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -663,4 +663,4 @@ function tripal_chado_views_views_data_alter(&$data) {
|
|
*/
|
|
*/
|
|
function tripal_chado_views_views_pre_view(&$view, &$display_id, &$args) {
|
|
function tripal_chado_views_views_pre_view(&$view, &$display_id, &$args) {
|
|
$_GET = array_merge($_GET, $_POST);
|
|
$_GET = array_merge($_GET, $_POST);
|
|
-}
|
|
|
|
|
|
+}
|