|
@@ -18,7 +18,6 @@ package model
|
|
|
|
|
|
import (
|
|
|
"bytes"
|
|
|
- "errors"
|
|
|
"os"
|
|
|
"path/filepath"
|
|
|
"sort"
|
|
@@ -791,11 +790,6 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
|
|
|
// operation.BackRelationKeyID 双向关联的目标关联列 ID
|
|
|
// operation.Name 双向关联的目标关联列名称
|
|
|
|
|
|
- if "" == operation.AvID || "" == operation.ID || "" == operation.KeyID {
|
|
|
- err = errors.New("invalid operation")
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
srcAv, err := av.ParseAttributeView(operation.AvID)
|
|
|
if nil != err {
|
|
|
return
|
|
@@ -870,7 +864,7 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
|
|
|
if operation.IsTwoWay {
|
|
|
name := strings.TrimSpace(operation.Name)
|
|
|
if "" == name {
|
|
|
- name = destAv.Name
|
|
|
+ name = srcAv.Name
|
|
|
}
|
|
|
|
|
|
destAv.KeyValues = append(destAv.KeyValues, &av.KeyValues{
|