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:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user