Changeset 4111
- Timestamp:
- Jan 31, 2008, 8:37:04 AM (15 years ago)
- Location:
- trunk/www/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/common/import/index.jsp
r3679 r4111 187 187 AutoDetectFileFormat.findPlugins(dc, context, f, plugin); 188 188 189 sc.getCurrentContext(Item.FILE).setId(f.getId());189 cc.setObject("auto-detected-file", f); 190 190 int matches = plugins.size(); 191 191 if (matches == 0) -
trunk/www/common/plugin/configure.jsp
r3987 r4111 137 137 // ...or in the current values from the job / plugin configuration 138 138 List values = requestValues != null ? Arrays.asList(requestValues) : pcRequest.getCurrentParameterValues(param.getName()); 139 // File parameters should also check the auto-detected-file (if not enumeration) 140 if ((values == null || values.size() == 0) && !pType.isEnumeration() && 141 pType instanceof FileParameterType) 142 { 143 if (currentContext != null && currentContext.getObject("auto-detected-file") != null) 144 { 145 values = Collections.singletonList(currentContext.getObject("auto-detected-file")); 146 currentContext.setObject("auto-detected-file", null); 147 } 148 } 139 149 // Then, we check the parameters default value 140 150 if ((values == null || values.size() == 0) && param.getDefaultValue() != null)
Note: See TracChangeset
for help on using the changeset viewer.