Skip to content

Commit

Permalink
fix autofill bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dungscout96 committed Jun 16, 2020
1 parent cff01ce commit 072b020
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pop_participantinfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ function pInfoCellEditCB(arg1, obj, input)
% for each row of the pInfo table
for r=1:size(pTbl.Data,1)
% if same subject with celected cell then copy value to that row as well
if strcmp(pTbl.Data{r,2}, pTbl.Data{row,2})
participantColIdx = find(strcmp(pTbl.ColumnName,'participant_id'));
if strcmp(pTbl.Data{r,participantColIdx}, pTbl.Data{row,participantColIdx})
pTbl.Data{r,col} = entered;
end
end
Expand Down

0 comments on commit 072b020

Please sign in to comment.