check SingleRowBool for duplicate rowID

This commit is contained in:
Linh Vo 2017-06-22 14:12:16 -05:00
parent 8a0609f1fd
commit 13b32b0b10

View file

@ -107,7 +107,7 @@ func (i *InputDefinition) LoadDefinition(pb *internal.InputDefinition) error {
if err := i.ValidateAction(action); err != nil {
return err
}
if action.RowID != 0 && action.Frame != "" {
if action.ValueDestination == SingleRowBool && action.Frame != "" {
val, ok := countRowID[action.Frame]
if ok && val == action.RowID {
return fmt.Errorf("duplicate rowID with other field: %v", action.RowID)