作者 唐旭辉

处理bug 3360

... ... @@ -461,6 +461,7 @@ func TemplateGet(uid, companyId int64, request *protocol.TemplateGetRequest) (rs
}
return
}
rsp.Template.InputList = make([]*protocol.InputElement, 0)
for i := range auditForm {
input := auditForm[i]
rsp.Template.InputList = append(rsp.Template.InputList, &protocol.InputElement{
... ... @@ -479,10 +480,15 @@ func TemplateGet(uid, companyId int64, request *protocol.TemplateGetRequest) (rs
}
rsp.AuditFlowConfig = protocol.AuditFlowConfig{
NoApprover: int(template.NoApprover),
ProcessConfig: make([]protocol.ProcessConfig, 0),
}
for i := range configs {
config := configs[i]
var configItem protocol.ProcessConfig
configItem := protocol.ProcessConfig{
FromSpecialUser: make([]protocol.VisibleObject, 0),
ToRole: make([]protocol.VisibleObject, 0),
ToUser: make([]protocol.VisibleObject, 0),
}
if e := json.Unmarshal([]byte(config.ConfigData), &configItem); e != nil {
log.Error(e.Error())
continue
... ...