浏览代码

[importer] calling guess_field_types for both 'localfile' and 'remote file' options

ayush.goyal 4 年之前
父节点
当前提交
c44e64e5f0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/indexer/src/indexer/templates/importer.mako

+ 1 - 1
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -2850,7 +2850,7 @@ ${ commonheader(_("Importer"), "indexer", user, request, "60px") | n,unicode }
             }
 
             if (self.source.inputFormat() !== 'stream' && self.source.inputFormat() !== 'connector' &&
-                (self.source.inputFormat() == 'localfile' && self.source.path() != '') ) {
+                (['localfile', 'file'].indexOf(self.source.inputFormat()) != -1 && self.source.path() != '') ) {
               self.guessFieldTypes();
             }
           }