I came across a weird "bug" when updating to 1.6. I had a basic form with pricing totals and a hidden field that was my id of a record to be updated. I basically had the following code using the post submission filter to handle the updating of the database.
add_action("gform_post_submission_23", "change_appraisal_fee", 10, 2);
function change_appraisal_fee($entry, $form) {
global $wpdb;
$appraisalID = $entry["4"];
$appraiser_rate = $entry["1"];
$homebase_rate = $entry["2"];
$appraiserRate = str_replace('$','',$appraiser_rate);
$homebaseRate = str_replace('$','',$homebase_rate);
$table = 'appraisal_rates';
$data = array('appraiser_rate' => $appraiserRate, 'homebase_rate' => $homebaseRate);
$where = array('appraisal_id' => $appraisalID);
$wpdb->update($table, $data, $where);
}
Where Field 4 was my ID that was populated dynamically. When viewing the form and using firebug I was able to verify that the ID was indeed getting passed to the form as it showed up as a value. However when the form was submitted, it did not submit the full value. The value was 1795, but the confirmation email I sent up to check it out, showed 195 as the ID.
To make matters more confusing, I added another hidden field and populated it dynamically with the same 1795. This new field at the end now showed 195 on submission, but the original one that was wrong before now showed the correct 1795 value. I then moved both fields to the top and saved it and low and behold, both hidden fields came in at the correct 1795.
Has anything like this been reported? I have 70 forms on this site and use this method on almost every single one of them, so I'd like to know if it was a weird situation or if I'll need to check all of them to make sure this won't happen again.
Thanks.