Ignore:
Timestamp:
Jul 16, 2007, 9:55:14 AM (16 years ago)
Author:
Nicklas Nordborg
Message:

References #625. Use correct plugin configuration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/common/plugin/index.jsp

    r3536 r3559  
    184184      int i = 0;
    185185      PluginDefinition thePlugin = null;
     186      PluginConfiguration theConfig = null;
    186187      while (i < contextResult.size() && thePlugin == null)
    187188      {
     
    189190        {
    190191          thePlugin = contextResult.get(i).getPluginDefinition();
     192          theConfig = contextResult.get(i).getPluginConfiguration();
    191193        }
    192194        i++;
    193195      }
    194       PluginConfiguration theConfig = contextResult.get(0).getPluginConfiguration();
    195196      int pluginDefinitionId = thePlugin.getId();
    196197      int pluginConfigurationId = theConfig == null ? 0 : theConfig.getId();
     
    234235  else if ("NewJob".equals(cmd))
    235236  {
    236     if (warnIfOpen && anotherIsOpen) throw new Exception("another is open");
     237    if (warnIfOpen && anotherIsOpen)
     238    {
     239      throw new DuplicateWizardException();
     240    }
    237241    String pluginClass = request.getParameter("plugin_class");
    238242    int pluginDefinitionId = Values.getInt(request.getParameter("plugindefinition_id"));
Note: See TracChangeset for help on using the changeset viewer.