Skip to content

Commit

Permalink
bug fix in import sheet cell renderer when viewing linked entries
Browse files Browse the repository at this point in the history
  • Loading branch information
hplahar committed Jan 12, 2015
1 parent 71b9926 commit 24fc0c5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/webapp/scripts/upload/uploadController.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,13 @@ angular.module('ice.upload.controller', [])
var object = {};
var fieldType;

if (linkedImportType) {
if (linkedImportType && col >= sheetHeaders.length) {
var newIndex = col - sheetHeaders.length;
fieldType = UploadUtil.getTypeField(linkedImportType, newIndex);
} else
fieldType = UploadUtil.getTypeField($scope.importType, col);

switch (fieldType) {

case 'circular':
case 'sentToAbrc':
object.type = 'checkbox';
Expand Down Expand Up @@ -410,7 +409,7 @@ angular.module('ice.upload.controller', [])
});
};

// bulk create or update from autofill or paste
// bulk create or update from auto-fill or paste
var bulkCreateOrUpdate = function (change) {
$scope.saving = true;

Expand Down

0 comments on commit 24fc0c5

Please sign in to comment.