Prevent blackhole auth error where are present multi fields

This commit is contained in:
Stefano Zoffoli 2012-01-19 17:48:39 +01:00
parent 5e495ad90c
commit c3b806ce8c

View file

@ -430,8 +430,8 @@ class SecurityComponent extends Component {
$multi = array(); $multi = array();
foreach ($fieldList as $i => $key) { foreach ($fieldList as $i => $key) {
if (preg_match('/\.\d+$/', $key)) { if (preg_match('/(\.\d+)+$/', $key)) {
$multi[$i] = preg_replace('/\.\d+$/', '', $key); $multi[$i] = preg_replace('/(\.\d+)+$/', '', $key);
unset($fieldList[$i]); unset($fieldList[$i]);
} }
} }