Hi,
in administrator module I have a POST request from client that contains the
information about root password and mail aliases. Sometimes I would like to
pass an empty value (for mail aliases, to reset it to no alias) and to
distinguish the empty value from nil (nil has a meaning do not try to save
this, while empty means save empty).
So, for example I have this object in webclient controller:
@administrator.password = nil
@administrator.aliases = ""
and I'm calling POST with @administrator.save
However, on the server part, I get this as parameters:
{"format"=>"xml", "action"=>"create", "administrator"=>{"aliases"=>nil, "password"=>nil}, "controller"=>"administrator"}
So both values are set to nil.
When debugging, we saw that the RAW_POST_DATA has a value
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<administrator>\n
<aliases></aliases>\n