Author: mcantelon
Date: Fri Jan 6 15:03:19 2012
New Revision: 10592
Log:
Code accession creating working.
Modified:
trunk/lib/task/csvImportTask.class.php
Modified: trunk/lib/task/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/csvImportTask.class.php Fri Jan 6 14:16:12 2012
(r10591)
+++ trunk/lib/task/csvImportTask.class.php Fri Jan 6 15:03:19 2012
(r10592)
@@ -278,11 +278,12 @@
{
foreach($self->rowStatusVars['accessionNumber'] as $accessionNumber)
{
- /* identifier setting isn't working yet...
$accession = new QubitAccession;
- $accession->identifier = '2012-01-05/1'; //$accessionNumber;
$accession->save();
- */
+
+ // workaround to problem setting identifier
+ $query = "UPDATE accession SET identifier=? WHERE id=?";
+ $self->sqlQuery($query, $params = array($accessionNumber,
$accession->id));
}
}
--
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.