Author: mcantelon
Date: Mon Aug 27 12:29:12 2012
New Revision: 12220
Log:
Added logic to prevent creation of bogus name access points.
Modified:
trunk/lib/task/import/csvImportTask.class.php
Modified: trunk/lib/task/import/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/import/csvImportTask.class.php Mon Aug 27 12:23:13
2012 (r12219)
+++ trunk/lib/task/import/csvImportTask.class.php Mon Aug 27 12:29:12
2012 (r12220)
@@ -651,13 +651,17 @@
$index = 0;
foreach($self->rowStatusVars['nameAccessPoints'] as $name)
{
- $actorOptions = array();
- if
(isset($self->rowStatusVars['nameAccessPointHistories'][$index]))
+ // skip blank names
+ if ($name)
{
- $actorOptions['history'] =
$self->rowStatusVars['nameAccessPointHistories'][$index];
+ $actorOptions = array();
+ if
(isset($self->rowStatusVars['nameAccessPointHistories'][$index]))
+ {
+ $actorOptions['history'] =
$self->rowStatusVars['nameAccessPointHistories'][$index];
+ }
+ $actor = $self->createOrFetchActor($name, $actorOptions);
+ $self->createRelation($self->object->id, $actor->id,
QubitTerm::NAME_ACCESS_POINT_ID);
}
- $actor = $self->createOrFetchActor($name, $actorOptions);
- $self->createRelation($self->object->id, $actor->id,
QubitTerm::NAME_ACCESS_POINT_ID);
$index++;
}
}
--
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.