Skip to content

Commit 56b12b5

Browse files
committed
Fix bug introduced by last commit.
Need to handle MODEL_COL_FIELD before COL_FIELD.
1 parent fa9066b commit 56b12b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/features/edit/js/gridEdit.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,7 @@
668668
//get original value from the cell
669669
origCellValue = cellModel($scope);
670670

671-
html = $scope.col.editableCellTemplate
672-
.replace(uiGridConstants.COL_FIELD, 'grid.getCellValue(row, col)');
671+
html = $scope.col.editableCellTemplate;
673672

674673
if ($scope.col.colDef.editModelField) {
675674
html = html.replace(uiGridConstants.MODEL_COL_FIELD, gridUtil.preEval('row.entity.' + $scope.col.colDef.editModelField));
@@ -678,6 +677,8 @@
678677
html = html.replace(uiGridConstants.MODEL_COL_FIELD, $scope.row.getQualifiedColField($scope.col));
679678
}
680679

680+
html = html.replace(uiGridConstants.COL_FIELD, 'grid.getCellValue(row, col)');
681+
681682
var optionFilter = $scope.col.colDef.editDropdownFilter ? '|' + $scope.col.colDef.editDropdownFilter : '';
682683
html = html.replace(uiGridConstants.CUSTOM_FILTERS, optionFilter);
683684

0 commit comments

Comments
 (0)