作者 唐旭辉

处理bug 3360

@@ -461,6 +461,7 @@ func TemplateGet(uid, companyId int64, request *protocol.TemplateGetRequest) (rs @@ -461,6 +461,7 @@ func TemplateGet(uid, companyId int64, request *protocol.TemplateGetRequest) (rs
461 } 461 }
462 return 462 return
463 } 463 }
  464 + rsp.Template.InputList = make([]*protocol.InputElement, 0)
464 for i := range auditForm { 465 for i := range auditForm {
465 input := auditForm[i] 466 input := auditForm[i]
466 rsp.Template.InputList = append(rsp.Template.InputList, &protocol.InputElement{ 467 rsp.Template.InputList = append(rsp.Template.InputList, &protocol.InputElement{
@@ -479,10 +480,15 @@ func TemplateGet(uid, companyId int64, request *protocol.TemplateGetRequest) (rs @@ -479,10 +480,15 @@ func TemplateGet(uid, companyId int64, request *protocol.TemplateGetRequest) (rs
479 } 480 }
480 rsp.AuditFlowConfig = protocol.AuditFlowConfig{ 481 rsp.AuditFlowConfig = protocol.AuditFlowConfig{
481 NoApprover: int(template.NoApprover), 482 NoApprover: int(template.NoApprover),
  483 + ProcessConfig: make([]protocol.ProcessConfig, 0),
482 } 484 }
483 for i := range configs { 485 for i := range configs {
484 config := configs[i] 486 config := configs[i]
485 - var configItem protocol.ProcessConfig 487 + configItem := protocol.ProcessConfig{
  488 + FromSpecialUser: make([]protocol.VisibleObject, 0),
  489 + ToRole: make([]protocol.VisibleObject, 0),
  490 + ToUser: make([]protocol.VisibleObject, 0),
  491 + }
486 if e := json.Unmarshal([]byte(config.ConfigData), &configItem); e != nil { 492 if e := json.Unmarshal([]byte(config.ConfigData), &configItem); e != nil {
487 log.Error(e.Error()) 493 log.Error(e.Error())
488 continue 494 continue