Author: mcantelon
Date: Tue Dec 20 14:31:40 2011
New Revision: 10446

Log:
Fixed bug with note creation.

Modified:
   trunk/lib/task/csvImportTask.class.php

Modified: trunk/lib/task/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/csvImportTask.class.php      Tue Dec 20 14:26:09 2011        
(r10445)
+++ trunk/lib/task/csvImportTask.class.php      Tue Dec 20 14:31:40 2011        
(r10446)
@@ -114,14 +114,14 @@
         }
 
         //  add conservation note if specified
-        if ($self->rowStatusVars['conservation_note']) {
+        if (isset($self->rowStatusVars['conservation_note'])) {
           # NOTE: This creates the note in the DB, but it doesn't show up
           # on the user side yet
           $self->create_note(231, $self->rowStatusVars['conservation_note']);
         }
 
         //  add alpha-numeric designation if specified
-        if ($self->rowStatusVars['alphanumeric_designation']) {
+        if (isset($self->rowStatusVars['alphanumeric_designation'])) {
           # NOTE: This creates the note in the DB, but it doesn't show up
           # on the user side yet
           $self->create_note(247, 
$self->rowStatusVars['alphanumeric_designation']);
@@ -312,7 +312,7 @@
 
   public function create_note($type_id, $text) {
     $note = new QubitNote;
-    $note->objectId = $self->information_object->id;
+    $note->objectId = $this->information_object->id;
     $note->typeId = $type_id;
     $note->content = $text;
     $note->scope = 'QubitTerm'; # not sure if this is needed

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