File tree 1 file changed +4
-10
lines changed
1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -224,11 +224,9 @@ public function createOne($name = NULL)
224
224
*/
225
225
public function setValues ($ values , $ erase = FALSE , $ onlyDisabled = FALSE )
226
226
{
227
- if (!$ this ->form ->isAnchored () || !$ this ->form ->isSubmitted ()) {
228
- foreach ($ values as $ name => $ value ) {
229
- if ((is_array ($ value ) || $ value instanceof \Traversable) && !$ this ->getComponent ($ name , FALSE )) {
230
- $ this ->createOne ($ name );
231
- }
227
+ foreach ($ values as $ name => $ value ) {
228
+ if ((is_array ($ value ) || $ value instanceof \Traversable) && !$ this ->getComponent ($ name , FALSE )) {
229
+ $ this ->createOne ($ name );
232
230
}
233
231
}
234
232
@@ -247,11 +245,7 @@ protected function loadHttpData()
247
245
return ;
248
246
}
249
247
250
- foreach ((array ) $ this ->getHttpData () as $ name => $ value ) {
251
- if ((is_array ($ value ) || $ value instanceof \Traversable) && !$ this ->getComponent ($ name , FALSE )) {
252
- $ this ->createOne ($ name );
253
- }
254
- }
248
+ $ this ->setValues ((array ) $ this ->getHttpData ());
255
249
}
256
250
257
251
You can’t perform that action at this time.
0 commit comments