Cleanup handling of default/null values when data editting. FIxes #2400

This commit is contained in:
Surinder Kumar
2017-05-27 14:51:02 -04:00
committed by Dave Page
parent 10caae4dc6
commit 1f26953504
3 changed files with 204 additions and 111 deletions
+5
View File
@@ -463,11 +463,16 @@ class TableCommand(GridCommand):
column_data[each_col] = None
column_type[each_col] =\
self.columns_info[each_col]['type_name']
else:
column_type[each_col] = \
self.columns_info[each_col]['type_name']
for each_row in changed_data[of_type]:
data = changed_data[of_type][each_row]['data']
# Remove our unique tracking key
data.pop('__temp_PK', None)
data.pop('is_row_copied', None)
data = set_column_names(data)
data_type = set_column_names(changed_data[of_type][each_row]['data_type'])
list_of_rowid.append(data.get('__temp_PK'))