? flag_page-1022818.patch
? flag_page-1022818_2.patch
Index: includes/flag_page.views.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/flag_page/includes/flag_page.views.inc,v
retrieving revision 1.1.4.2
diff -u -p -r1.1.4.2 flag_page.views.inc
--- includes/flag_page.views.inc	8 Jan 2011 14:20:59 -0000	1.1.4.2
+++ includes/flag_page.views.inc	11 Jan 2011 12:54:48 -0000
@@ -59,6 +59,23 @@ function flag_page_views_data() {
     ),
   );
 
+  if (module_exists('flag_note')) {
+    // relationship (Integration with Flag notes: notes on pages)
+    $data['flag_page_data_url']['flag_note_page_rel'] = array(
+      'title' => t('Notes on pages'),
+      'help' => t('All notes associated with a flagged node.'),
+      'relationship' => array(
+        'label' => t('Flag note on page'),
+        'base' => 'flag_note',
+        'base field' => 'content_id',
+        'relationship field' => 'content_id',
+        'handler' => 'flag_handler_relationship_content',
+        'flag_type' => 'page',
+      ),
+    );
+  }
+
+
   $data['flag_page_data_user']['table']['group']  = t('Flag page');
   /*$data['flag_page_data_user']['table']['base'] = array(
     'field' => 'content_id',
