From b581c3605fbb053c063841ef730d9f26c5ebfb9a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 14 Nov 2011 18:47:57 -0200 Subject: Views fixes --- features/muamba_interface/muamba_interface.views_default.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'features/muamba_interface') diff --git a/features/muamba_interface/muamba_interface.views_default.inc b/features/muamba_interface/muamba_interface.views_default.inc index 75afb43..40f010a 100644 --- a/features/muamba_interface/muamba_interface.views_default.inc +++ b/features/muamba_interface/muamba_interface.views_default.inc @@ -1229,7 +1229,6 @@ function muamba_interface_views_default_views() { $handler->display->display_options['filters']['status_1']['id'] = 'status_1'; $handler->display->display_options['filters']['status_1']['table'] = 'muamba'; $handler->display->display_options['filters']['status_1']['field'] = 'status'; - $handler->display->display_options['filters']['status_1']['relationship'] = 'nid'; $handler->display->display_options['filters']['status_1']['value'] = array( 1 => '1', ); @@ -1311,6 +1310,11 @@ function muamba_interface_views_default_views() { $handler->display->display_options['relationships']['owner']['table'] = 'muamba'; $handler->display->display_options['relationships']['owner']['field'] = 'owner'; $handler->display->display_options['relationships']['owner']['required'] = 0; + /* Relação: Muamba: Muamba requester user */ + $handler->display->display_options['relationships']['uid_1']['id'] = 'uid_1'; + $handler->display->display_options['relationships']['uid_1']['table'] = 'muamba'; + $handler->display->display_options['relationships']['uid_1']['field'] = 'uid'; + $handler->display->display_options['relationships']['uid_1']['required'] = 0; $handler->display->display_options['defaults']['fields'] = FALSE; /* Campo: Conteúdo: Foto */ $handler->display->display_options['fields']['field_foto']['id'] = 'field_foto'; @@ -1513,6 +1517,12 @@ function muamba_interface_views_default_views() { 1 => '1', ); $handler->display->display_options['filters']['status_2']['group'] = 0; + /* Filter criterion: Usuário: Atual */ + $handler->display->display_options['filters']['uid_current_1']['id'] = 'uid_current_1'; + $handler->display->display_options['filters']['uid_current_1']['table'] = 'users'; + $handler->display->display_options['filters']['uid_current_1']['field'] = 'uid_current'; + $handler->display->display_options['filters']['uid_current_1']['relationship'] = 'uid_1'; + $handler->display->display_options['filters']['uid_current_1']['value'] = '1'; /* Display: Favoritas (bloco) */ $handler = $view->new_display('block', 'Favoritas (bloco)', 'block_3'); -- cgit v1.2.3