Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Commit

Permalink
Remove title workaround, the fix is to escape comma's
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Olde Hampsink committed Sep 25, 2014
1 parent 77e858b commit 0037858
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions services/ImportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ public function row($row, $data, $settings)
if(isset($criteria->$settings['map'][$key]) && isset($settings['unique'][$key]) && intval($settings['unique'][$key]) == 1 && !empty($fields[$value])) {
$criteria->$settings['map'][$key] = $cmodel[$settings['map'][$key]] = $fields[$value];
}
}

// Workaround for title matching
if(!is_null($criteria->title)) {
$criteria->search = Import_ElementModel::HandleTitle.':"'.$criteria->title.'"';
$criteria->title = null;
}

// If there's a match...
Expand Down

0 comments on commit 0037858

Please sign in to comment.