Author: jablko
Date: Mon Oct 18 20:43:26 2010
New Revision: 8263

Log:
Add field names

Modified:
   
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/actions/relatedAuthorityRecordComponent.class.php
   
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/actions/relatedResourceComponent.class.php

Modified: 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/actions/relatedAuthorityRecordComponent.class.php
==============================================================================
--- 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/actions/relatedAuthorityRecordComponent.class.php
 Mon Oct 18 20:34:47 2010        (r8262)
+++ 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/actions/relatedAuthorityRecordComponent.class.php
 Mon Oct 18 20:43:26 2010        (r8263)
@@ -19,6 +19,16 @@
 
 class sfIsaarPluginRelatedAuthorityRecordComponent extends 
RelationEditComponent
 {
+  // Arrays not allowed in class constants
+  public static
+    $NAMES = array(
+      'authorizedFormOfName',
+      'type',
+      'description',
+      'startDate',
+      'endDate',
+      'dateDisplay');
+
   protected function addField($name)
   {
     switch ($name)

Modified: 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/actions/relatedResourceComponent.class.php
==============================================================================
--- 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/actions/relatedResourceComponent.class.php
        Mon Oct 18 20:34:47 2010        (r8262)
+++ 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/actions/relatedResourceComponent.class.php
        Mon Oct 18 20:43:26 2010        (r8263)
@@ -19,6 +19,16 @@
 
 class sfIsaarPluginRelatedResourceComponent extends RelationEditComponent
 {
+  // Arrays not allowed in class constants
+  public static
+    $NAMES = array(
+      'informationObject',
+      'type',
+      'resourceType',
+      'startDate',
+      'endDate',
+      'dateDisplay');
+
   protected function addField($name)
   {
     switch ($name)
@@ -90,7 +100,7 @@
   {
     parent::execute($request);
 
-    $this->form->getWidgetFormSchema()->setNameFormat('relatedResource[%s]');
+    $this->form->getWidgetSchema()->setNameFormat('relatedResource[%s]');
   }
 
   /**

-- 
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