Branch: Tag:

2001-06-27

2001-06-27 20:58:35 by Martin Nilsson <mani@lysator.liu.se>

Call transform_from_form with the value mapping in set_from_form.

Rev: server/etc/modules/Variable.pmod/module.pmod:1.57

1: - // $Id: module.pmod,v 1.56 2001/06/19 21:30:31 nilsson Exp $ + // $Id: module.pmod,v 1.57 2001/06/27 20:58:35 nilsson Exp $      #include <module.h>   #include <roxen.h>
303:    return res;    }    -  mixed transform_from_form( string what,mapping|void v ) +  mixed transform_from_form( string what, mapping|void v )    //! Given a form value, return what should be set.    //! Used by the default set_from_form implementation.    {
326:    mixed val;    if( sizeof( val = get_form_vars(id)) && val[""])    { -  val = transform_from_form( val[""] ); +  val = transform_from_form( val[""], val );    if( !force && val == query() )    return 0;    array b;