Ignore the "fd" field for the time being (for the shm extension only).
This commit is contained in:
parent
3b4adabee1
commit
efe87cb908
|
@ -207,7 +207,7 @@ func (x *XMLRequest) Translate() *Request {
|
||||||
Reply: x.Reply.Translate(),
|
Reply: x.Reply.Translate(),
|
||||||
}
|
}
|
||||||
for _, field := range x.Fields {
|
for _, field := range x.Fields {
|
||||||
if field.XMLName.Local == "doc" {
|
if field.XMLName.Local == "doc" || field.XMLName.Local == "fd" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
r.Fields = append(r.Fields, field.Translate(r))
|
r.Fields = append(r.Fields, field.Translate(r))
|
||||||
|
@ -238,7 +238,7 @@ func (x *XMLReply) Translate() *Reply {
|
||||||
Fields: make([]Field, 0, len(x.Fields)),
|
Fields: make([]Field, 0, len(x.Fields)),
|
||||||
}
|
}
|
||||||
for _, field := range x.Fields {
|
for _, field := range x.Fields {
|
||||||
if field.XMLName.Local == "doc" {
|
if field.XMLName.Local == "doc" || field.XMLName.Local == "fd" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
r.Fields = append(r.Fields, field.Translate(r))
|
r.Fields = append(r.Fields, field.Translate(r))
|
||||||
|
|
Loading…
Reference in New Issue