bug fixing

ccode
homonym companies terms
tel to long set to memo instead of phone field

Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
bachy
2012-05-21 17:50:22 +02:00
parent 9e85e7a105
commit 18982b6700
5 changed files with 46 additions and 23 deletions
+2 -1
View File
@@ -66,7 +66,6 @@ class MaterioIndustrialSampleUserMigration extends MaterioBasicMigration {
$this->addFieldMapping('field_company', 'company');
}
public function prepareRow($cr) {
@@ -74,6 +73,8 @@ class MaterioIndustrialSampleUserMigration extends MaterioBasicMigration {
return false;
$cr->company = trim($cr->company);
if(count(taxonomy_get_term_by_name($cr->company.'-'.$cr->id_industrial)))
$cr->company .= '-'.$cr->id_industrial;
$cr->memo = "#sample";