Author: david
Date: Fri Nov 18 17:11:47 2011
New Revision: 10340

Log:
Use 'name of creators' for column name, as per CSV templates

Modified:
   trunk/lib/QubitCsvImport.class.php

Modified: trunk/lib/QubitCsvImport.class.php
==============================================================================
--- trunk/lib/QubitCsvImport.class.php  Fri Nov 18 17:07:49 2011        (r10339)
+++ trunk/lib/QubitCsvImport.class.php  Fri Nov 18 17:11:47 2011        (r10340)
@@ -485,9 +485,9 @@
 
     $n = 0;
     $new_creators = $this->names = array();
-    if (0 < strlen($parameters['creators']))
+    if (0 < strlen($parameters['nameOfCreators']))
     {
-      foreach (explode('|', $parameters['creators']) as $new_creator)
+      foreach (explode('|', $parameters['nameOfCreators']) as $new_creator)
       {
         // if the name does not exist, create it
         if (!in_array($new_creator, $this->names) && !empty($new_creator))
@@ -504,6 +504,7 @@
       }
     }
     $parameters['creators'] = $new_creators;
+    unset($parameters['nameOfCreators']);
 
     // convert pipe-delimited values into multi-value
     $n = 0;

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