Skip to content
Snippets Groups Projects
Commit 42ba2167 authored by Sebastian Pongratz's avatar Sebastian Pongratz :ping_pong: Committed by Johannes Goderbauer
Browse files

#1055236 bugfix leadimport

parent 85d2f437
No related branches found
No related tags found
No related merge requests found
......@@ -242,6 +242,7 @@
<title>Upload new file</title>
<onActionProcess>%aditoprj%/entity/Leadimport_entity/entityfields/uploadnewfile/onActionProcess.js</onActionProcess>
<iconId>VAADIN:UPLOAD_ALT</iconId>
<state>INVISIBLE</state>
</entityActionField>
<entityField>
<name>information</name>
......@@ -260,7 +261,7 @@
<onActionProcess>%aditoprj%/entity/Leadimport_entity/entityfields/load_data/onActionProcess.js</onActionProcess>
<isMenuAction v="true" />
<iconId>VAADIN:CLOUD_DOWNLOAD</iconId>
<state>INVISIBLE</state>
<state>EDITABLE</state>
</entityActionField>
<entityConsumer>
<name>LeadTempC</name>
......
......@@ -167,7 +167,7 @@ LeadImportUtils.importData = function(pDataFields, pDataTypes, pFieldDef, pField
var persRet;
//------create organisation
if (LeadValues["NAME"] != "")//only if Organame is filled
if (LeadValues["NAME"].trim() != "")//only if Organame is filled
{
orgObjID = "Organisation";//for attribute
orgRet = LeadImportUtils.insertOrg(pDataFields, pDataTypes, pFieldDef, pFieldValues, pUser, pDate);
......@@ -183,7 +183,7 @@ LeadImportUtils.importData = function(pDataFields, pDataTypes, pFieldDef, pField
}
}
//------create person
if (LeadValues[ "LASTNAME" ] != "")//only if lastname is filled
if (LeadValues["LASTNAME"].trim() != "")//only if lastname is filled
{
persObjID = "Person";//for attribute
persRet = LeadImportUtils.insertPers(pDataFields, pDataTypes, pFieldDef, pFieldValues, orgid, LeadValues, pUser, pDate);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment