@@ -213,12 +213,15 @@ def send_selected_collaborator_notis(self, row_data):
213213 if user not in notify_users :
214214 notify_users .append (user )
215215 elif self .action_type == 'update_record' :
216- converted_row = self .auto_rule .get_convert_sql_row ()
217- row_id = converted_row ['_id' ]
216+ sql_row = self .auto_rule .get_sql_row ()
217+ row_id = sql_row ['_id' ]
218218 for column_name , value in row_data .items ():
219219 if column_name not in notify_column_names :
220220 continue
221- old_value = converted_row .get (column_name ) or []
221+ column = next (filter (lambda column : column ['name' ] == column_name , self .auto_rule .table_info ['columns' ]), None )
222+ if not column :
223+ continue
224+ old_value = sql_row .get (column ['key' ]) or []
222225 for user in (set (value ) - set (old_value )):
223226 if user not in notify_users :
224227 notify_users .append (user )
@@ -1604,7 +1607,8 @@ class LinkRecordsAction(BaseAction):
16041607 ColumnTypes .COLLABORATOR : "is_exactly" ,
16051608 ColumnTypes .EMAIL : "is" ,
16061609 ColumnTypes .RATE : "equal" ,
1607- ColumnTypes .AUTO_NUMBER : "is"
1610+ ColumnTypes .AUTO_NUMBER : "is" ,
1611+ ColumnTypes .DEPARTMENT_SINGLE_SELECT : "is"
16081612 }
16091613
16101614 VALID_COLUMN_TYPES = [
0 commit comments