#1781 closed defect (fixed)
Can't copy transformation for BASE 1 plug-in with enum parameters
Reported by: | Nicklas Nordborg | Owned by: | Nicklas Nordborg |
---|---|---|---|
Priority: | major | Milestone: | BASE 3.2.4 |
Component: | coreplugins | Version: | |
Keywords: | Cc: |
Description
At first, it seems to work, and the job configuration dialog is filled with parameter values from old transformation. But there are two separate problems:
- Clicking next result in error message like: The value 'X' isn't allowed for parameter 'Y'.
- Clicking on parameter 'Y' in the parameter list clears the copied value and the 'not specified' option is selected even though 'X' actually exists in the dropdown list.
Change History (4)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(In [6346]) Fixes #1781: Can't copy transformation for BASE 1 plug-in with enum parameters
Fixed in the GUI by also letting the configuration dialog also search the text of selection lists if no match is found among the key values.
Fixed in the core by adding an option to ParameterType
that enable searching the values if no matching key is found. The BASE1 plug-in executer enables this option for all enumeration parameters.
comment:4 by , 11 years ago
Note:
See TracTickets
for help on using tickets.
This issue is caused by the fix for #1437 which changed how enum values are stored in the database.
Enum values are actually key/value pairs where key is typically a number not visible to the user and the value is the text that is visible in the parameter values list. When configuring a plug-in it is only the 'key' values that are sent between the browser/server/plug-in code. Normally this works fine, since it is easy to find a 'value' given the 'key'.
However #1437 changed the behavior of the BASE 1 plug-in executor so that in the final step the 'value' is saved in the database instead of the 'key'. This causes a problem for the 'copy transformation' function which simply copies all values stored in the database and send them as parameters to the plug-in. This means that now the 'value' values are sent and not the 'key' values.