From 1765ac45dd8237f2788ee39fb01cbbb7d0335d99 Mon Sep 17 00:00:00 2001
From: juampy <juampy72@gmail.com>
Date: Mon, 6 Aug 2012 00:41:22 +0200
Subject: [PATCH] Issue #1714470 by juampy: Fixed Project select field not visible when using Views 3.

Recreated view casetracker_project_options so it also returns field nid.
---
 casetracker.views_default.inc |   35 ++++++++++++++++++++++++++++++++++-
 1 files changed, 34 insertions(+), 1 deletions(-)

diff --git a/casetracker.views_default.inc b/casetracker.views_default.inc
index 71954ad..4b2971b 100644
--- a/casetracker.views_default.inc
+++ b/casetracker.views_default.inc
@@ -38,6 +38,39 @@ function _view_casetracker_project_options() {
       'field' => 'title',
       'relationship' => 'none',
     ),
+    'nid' => array(
+      'label' => 'Nid',
+      'alter' => array(
+        'alter_text' => 0,
+        'text' => '',
+        'make_link' => 0,
+        'path' => '',
+        'absolute' => 0,
+        'link_class' => '',
+        'alt' => '',
+        'rel' => '',
+        'prefix' => '',
+        'suffix' => '',
+        'target' => '',
+        'help' => '',
+        'trim' => 0,
+        'max_length' => '',
+        'word_boundary' => 1,
+        'ellipsis' => 1,
+        'html' => 0,
+        'strip_tags' => 0,
+      ),
+      'empty' => '',
+      'hide_empty' => 0,
+      'empty_zero' => 0,
+      'hide_alter_empty' => 1,
+      'link_to_node' => 0,
+      'exclude' => 0,
+      'id' => 'nid',
+      'table' => 'node',
+      'field' => 'nid',
+      'relationship' => 'none',
+    ),
   ));
   $handler->override_option('sorts', array(
     'title' => array(
@@ -54,7 +87,6 @@ function _view_casetracker_project_options() {
   foreach (variable_get('casetracker_project_node_types', array('casetracker_basic_project')) as $type) {
     $projects[$type] = $type;
   }
-
   $filters = array(
     'status' => array(
       'operator' => '=',
@@ -91,6 +123,7 @@ function _view_casetracker_project_options() {
     'perm' => 'access content',
   ));
   $handler->override_option('items_per_page', 0);
+
   return $view;
 }
 
-- 
1.7.4.1

