Merge pull request #558 from stefanozoffoli/patch-3

Prevent blackhole auth error for multi fields.

Fields with .1.0 should not blackhole.
This commit is contained in:
Mark Story 2012-03-16 18:04:49 -07:00
commit 6e4456fbd7

View file

@ -604,12 +604,8 @@ class FormHelper extends AppHelper {
}
}
$last = end($field);
if (is_numeric($last) || empty($last)) {
array_pop($field);
}
$field = implode('.', $field);
$field = preg_replace('/(\.\d+)+$/', '', $field);
if ($lock) {
if (!in_array($field, $this->fields)) {