File tree 1 file changed +7
-9
lines changed
1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 732
732
return ;
733
733
}
734
734
735
+ var modelField = $scope . row . getQualifiedColField ( $scope . col ) ;
736
+ if ( $scope . col . colDef . editModelField ) {
737
+ modelField = gridUtil . preEval ( 'row.entity.' + $scope . col . colDef . editModelField ) ;
738
+ }
739
+
740
+ cellModel = $parse ( modelField ) ;
735
741
736
- cellModel = $parse ( $scope . row . getQualifiedColField ( $scope . col ) ) ;
737
742
//get original value from the cell
738
743
origCellValue = cellModel ( $scope ) ;
739
744
740
745
html = $scope . col . editableCellTemplate ;
741
-
742
- if ( $scope . col . colDef . editModelField ) {
743
- html = html . replace ( uiGridConstants . MODEL_COL_FIELD , gridUtil . preEval ( 'row.entity.' + $scope . col . colDef . editModelField ) ) ;
744
- }
745
- else {
746
- html = html . replace ( uiGridConstants . MODEL_COL_FIELD , $scope . row . getQualifiedColField ( $scope . col ) ) ;
747
- }
748
-
746
+ html = html . replace ( uiGridConstants . MODEL_COL_FIELD , modelField ) ;
749
747
html = html . replace ( uiGridConstants . COL_FIELD , 'grid.getCellValue(row, col)' ) ;
750
748
751
749
var optionFilter = $scope . col . colDef . editDropdownFilter ? '|' + $scope . col . colDef . editDropdownFilter : '' ;
You can’t perform that action at this time.
0 commit comments