Changeset 7763 for branches/3.15-stable
- Timestamp:
- Dec 17, 2019, 8:22:14 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.15-stable/www/common/plugin/configure.jsp
r7679 r7763 80 80 <%! 81 81 List<?> getParameterValues(PluginParameter<?> pp, DbControl dc, javax.servlet.http.HttpServletRequest request, 82 PluginConfigurationRequest pcRequest, ItemContext currentContext )82 PluginConfigurationRequest pcRequest, ItemContext currentContext, Job job) 83 83 { 84 84 ParameterType<?> pType = pp.getParameterType(); … … 106 106 Object charset = currentContext.getObject("last-file-charset"); 107 107 if (charset != null) values = Collections.singletonList(charset); 108 } 109 110 // Special handling for "dryRun" parameter which is typically not stored as a job proerty 111 if ((values == null || values.size() == 0) && Parameters.DRY_RUN_PARAMETER.equals(pp.getName())) 112 { 113 if (job != null && job.isDryRun()) 114 { 115 values = Collections.singletonList(true); 116 } 108 117 } 109 118 … … 272 281 json.put("enumeration", pType.isEnumeration() ? 1 : 0); 273 282 json.put("multiplicity", pType.getMultiplicity()); 274 List<?> values = getParameterValues(pp, dc, request, pcRequest, currentContext );283 List<?> values = getParameterValues(pp, dc, request, pcRequest, currentContext, job); 275 284 json.put("values", convertToJson(values, dc, pType, dateFormatter, dateTimeFormatter)); 276 285 }
Note: See TracChangeset
for help on using the changeset viewer.