Author: sevein
Date: Thu Jul 28 19:01:57 2011
New Revision: 9413

Log:
Make relation index action extendable so we can create complex dialogs with 
extra fields besides of QubitRelation fields, for example: related donors + 
contact information objects (see future commits)

Modified:
   trunk/apps/qubit/modules/relation/actions/indexAction.class.php

Modified: trunk/apps/qubit/modules/relation/actions/indexAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/relation/actions/indexAction.class.php     Thu Jul 
28 15:10:59 2011        (r9412)
+++ trunk/apps/qubit/modules/relation/actions/indexAction.class.php     Thu Jul 
28 19:01:57 2011        (r9413)
@@ -53,6 +53,11 @@
       $value['type'] = $this->context->routing->generate(null, 
array($this->resource->type, 'module' => 'term'));
     }
 
+    if (method_exists($this, 'extraQueries'))
+    {
+      $value = $this->extraQueries($value);
+    }
+
     return $this->renderText(json_encode($value));
   }
 }

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to