Skip to content

Commit

Permalink
Prefer slug if both parentId/slug specified
Browse files Browse the repository at this point in the history
- Will no longer throw an exception / end import if both present
  • Loading branch information
Mike Gale committed May 7, 2014
1 parent 274be67 commit 458f6a4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/task/import/csvImportTask.class.php
Expand Up @@ -466,16 +466,6 @@ public function execute($arguments = array(), $options = array())

$self->object->setPublicationStatus($pubStatusTermId);

if (
isset($self->rowStatusVars['qubitParentSlug'])
&& $self->rowStatusVars['qubitParentSlug']
&& isset($self->rowStatusVars['parentId'])
&& $self->rowStatusVars['parentId']
)
{
throw new sfException('Both parentId and qubitParentSlug are set: only one should be set.');
}

if (
isset($self->rowStatusVars['qubitParentSlug'])
&& $self->rowStatusVars['qubitParentSlug']
Expand Down

0 comments on commit 458f6a4

Please sign in to comment.