Author: mcantelon
Date: Thu Dec 29 14:28:44 2011
New Revision: 10472
Log:
Fixed so blank notes/properties don't get added.
Modified:
trunk/lib/task/csvImportTask.class.php
Modified: trunk/lib/task/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/csvImportTask.class.php Thu Dec 29 14:12:50 2011
(r10471)
+++ trunk/lib/task/csvImportTask.class.php Thu Dec 29 14:28:44 2011
(r10472)
@@ -312,14 +312,14 @@
{
// if column maps to a property, set the property
- if (isset($self->propertyMap) && isset($self->propertyMap[$columnName]))
+ if (isset($self->propertyMap) && isset($self->propertyMap[$columnName])
&& trim($value))
{
$self->informationObject->addProperty(
$self->propertyMap[$columnName],
$value
);
}
- else if (isset($self->noteMap) && isset($self->noteMap[$columnName]))
+ else if (isset($self->noteMap) && isset($self->noteMap[$columnName]) &&
trim($value))
{
// otherwise, if maps to a note, create it
$self->createNote($self->noteMap[$columnName], $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.