Skip to content
Snippets Groups Projects
Commit 17270843 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

lead import fix file upload in edit mode

parent 5e5cad86
No related branches found
No related tags found
No related merge requests found
......@@ -5,10 +5,9 @@ import("system.vars");
import("system.db");
import("Document_lib");
if (vars.get("$sys.recordstate") && vars.get("$sys.recordstate") != neon.OPERATINGSTATE_NEW)
if (vars.get("$sys.recordstate") && vars.get("$sys.recordstate") != neon.OPERATINGSTATE_NEW && vars.get("$sys.recordstate") != neon.OPERATINGSTATE_EDIT)
{
var binMetadatas = db.getBinaryMetadata("LEADIMPORT", "IMPORTFILE", vars.get("$field.LEADIMPORTID"), false, SqlUtils.getBinariesAlias(), "");
if (binMetadatas.length > 0)
{
// preset with data from db. This is mostly to allow just editing the other fields without uploading a file (because this field is mandatory)
......
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