lib/openwfe/expressions/fe_value.rb in openwferu-0.9.12 vs lib/openwfe/expressions/fe_value.rb in openwferu-0.9.12.863

- old
+ new

@@ -27,13 +27,10 @@ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. #++ -# -# $Id: definitions.rb 2725 2006-06-02 13:26:32Z jmettraux $ -# # # "made in Japan" # # John Mettraux at openwfe.org @@ -97,10 +94,10 @@ value = workitem.attributes[FIELD_RESULT] #puts "value is '#{value}'" if vkey - set_variable(vkey, value) + set_variable vkey, value elsif fkey workitem.attributes[fkey] = value else raise "'variable' or 'field' attribute missing from 'set' expression" end