|
|
@@ -332,14 +332,12 @@ class FormProtector
|
|
|
foreach ($fieldList as $i => $key) {
|
|
|
$isLocked = in_array($key, $locked, true);
|
|
|
|
|
|
- if ($unlockedFields) {
|
|
|
- foreach ($unlockedFields as $off) {
|
|
|
- $off = explode('.', $off);
|
|
|
- $field = array_values(array_intersect(explode('.', $key), $off));
|
|
|
- $isUnlocked = ($field === $off);
|
|
|
- if ($isUnlocked) {
|
|
|
- break;
|
|
|
- }
|
|
|
+ foreach ($unlockedFields as $off) {
|
|
|
+ $off = explode('.', $off);
|
|
|
+ $field = array_values(array_intersect(explode('.', $key), $off));
|
|
|
+ $isUnlocked = ($field === $off);
|
|
|
+ if ($isUnlocked) {
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
|