Author: nathangray
New Revision: 55421
URL: http://svn.stylite.de/viewvc/egroupware?rev=55421&view=rev
Log:
Enable importing to categories with comma in their name
Modified:
branches/14.2/importexport/ (props changed)
branches/14.2/importexport/inc/class.importexport_import_csv.inc.php
Propchange: branches/14.2/importexport/
— svn:mergeinfo (original)
+++ svn:mergeinfo Fri Mar 18 17:01:08 2016
@@ -1,1 +1,1 @@
-/trunk/importexport:51376,51455,51812,51817,51979,52360,52442,52485,53562,53620,53703,53724-53725,54275,54294,54416-54418
+/trunk/importexport:51376,51455,51812,51817,51979,52360,52442,52485,53562,53620,53703,53724-53725,54275,54294,54416-54418,55395
— branches/14.2/importexport/inc/class.importexport_import_csv.inc.php (original)
+++ branches/14.2/importexport/inc/class.importexport_import_csv.inc.php Fri Mar 18 17:01:08 2016
@@ -484,12 +484,21 @@
if($appname) {
$GLOBALS[‘egw_info’][‘flags’][‘currentapp’] = $appname;
}
-
$existing_cat = $categories->exists('all',$record[$name]);
-
if($existing_cat)
-
{
-
$cat_id = $existing_cat;
-
}
-
else
-
{
-
$cat_id = importexport_helper_functions::cat_name2id($record[$name]);
-
}
// Don't clear it if it wasn't found
if($cat_id) $record[$name] = $cat_id;
}
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs