Quote:
Originally Posted by chaley
Validating only actions that will be run makes sense.
However, unless I am misunderstanding I don't think the problem is as large as you indicate, at least for template actions. Looking at check_template() I see that the template is run to see if it produces an error. Assume the template looks something like this
Code:
program:
if field_exists('#somefield') then
do_something();
do_something_else()
fi
This template won't produce an error if #somefield doesn't exist so it would validate. Of course it might not do what the action requires, which is a different problem.
|
So, essentially, instead of using "Edit Metadata", I use a function with that template that set the value of the column if it exists.