# HG changeset patch # User bsw # Date 1603798501 -3600 # Node ID a13a0071f8737dfe914d34053b3f249d4f15c4bf # Parent 0fce837631387c15cbc9f1a40a9adbda1472fbe7 Allow setting of external references for firstlife diff -r 0fce83763138 -r a13a0071f873 app/main/draft/_action/add.lua --- a/app/main/draft/_action/add.lua Tue Oct 27 12:33:57 2020 +0100 +++ b/app/main/draft/_action/add.lua Tue Oct 27 12:35:01 2020 +0100 @@ -192,6 +192,11 @@ if location == "" then location = nil end + + local external_reference + if config.firstlife then + external_reference = param.get("external_reference") + end if param.get("preview") or param.get("edit") then return false @@ -235,6 +240,7 @@ end initiative.issue_id = issue.id initiative.name = name + initiative.external_reference = external_reference initiative:save() new_initiative = initiative diff -r 0fce83763138 -r a13a0071f873 app/main/draft/new.lua --- a/app/main/draft/new.lua Tue Oct 27 12:33:57 2020 +0100 +++ b/app/main/draft/new.lua Tue Oct 27 12:35:01 2020 +0100 @@ -417,6 +417,10 @@ end } end + if config.firstlife then + ui.field.hidden{ name = "external_reference", value = param.get("external_reference") } + end + end } end }