Author: mcantelon
Date: Fri Feb 24 22:19:28 2012
New Revision: 10981
Log:
Fixed error with text filter.
Modified:
trunk/lib/task/import/csvImportTask.class.php
Modified: trunk/lib/task/import/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/import/csvImportTask.class.php Fri Feb 24 21:56:16
2012 (r10980)
+++ trunk/lib/task/import/csvImportTask.class.php Fri Feb 24 22:19:28
2012 (r10981)
@@ -656,10 +656,9 @@
// convert content with | characters to a bulleted list
$import->contentFilterLogic = function($text)
{
- if(substr_count($text, '|'))
- {
- return '* '. str_replace($text, "|", "\n* ");
- }
+ return (substr_count($text, '|'))
+ ? '* '. str_replace("|", "\n* ", $text)
+ : $text;
};
$import->addColumnHandler('levelOfDescription', function(&$self, $data)
--
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.