File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 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)
224224 */
225225 public function setValues ($ values , $ erase = FALSE , $ onlyDisabled = FALSE )
226226 {
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 );
232230 }
233231 }
234232
@@ -247,11 +245,7 @@ protected function loadHttpData()
247245 return ;
248246 }
249247
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 ());
255249 }
256250
257251
You can’t perform that action at this time.
0 commit comments