Skip to content

Commit

Permalink
[all] 테이블 편집 시 태그 셀에 올바르지 않은 데이터가 들어가는 문제 수정
Browse files Browse the repository at this point in the history
임의로 클립보드에 데이터가 있는 경우 태그 컬럼에 붙여넣기를 하면 잘못된 데이터가 들어가는 문제로 수정

재현방법
1. Enabled 컬럼에서 Ctrl+C 를 누른다
2. 태그 컬럼에서 Ctrl+V 를 누른다
3. 크레마 저장소의 테이블 XML 파일에 “True” or “False” 데이터로 저장이 된다
  • Loading branch information
powerumc committed Aug 30, 2019
1 parent 472d30e commit 9957877
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions common/Ntreev.Crema.Data/InternalDataTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,18 @@ private void ValidateCremaType(DataColumnChangeEventArgs e)

dataType.ValidateValue(textValue);
}
else if (e.Column is InternalAttribute attribute)
{
if (e.Column.ColumnName == nameof(Tags))
{
var proposedValue = e.ProposedValue;

if (TagInfoUtility.Names.Contains(proposedValue) == false)
{
throw new ArgumentException($"태그 이름 '{proposedValue}' 은(는) 지원하지 않는 태그입니다.");
}
}
}
}

private void ChildTables_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Expand Down

0 comments on commit 9957877

Please sign in to comment.