@@ -426,16 +426,17 @@ protected function getUpdateForm()
426
426
*/
427
427
protected function hydrateObjectForm ($ object )
428
428
{
429
+
429
430
// Prepare the data that will hydrate the form
430
431
$ data = array (
431
- 'id ' => $ object ->getId (),
432
- 'locale ' => $ object ->getLocale (),
433
- 'title ' => $ object ->getTitle (),
434
- 'code ' => $ object ->getCode (),
435
- 'chapo ' => $ object ->getChapo (),
436
- 'description ' => $ object ->getDescription (),
437
- 'postscriptum ' => $ object ->getPostscriptum (),
438
- 'visible ' => $ object ->getVisible ()
432
+ 'id ' => $ object ->getId (),
433
+ 'locale ' => $ object ->getLocale (),
434
+ 'title ' => $ object ->getTitle (),
435
+ 'code ' => $ object ->getCode (),
436
+ 'chapo ' => $ object ->getChapo (),
437
+ 'description ' => $ object ->getDescription (),
438
+ 'postscriptum ' => $ object ->getPostscriptum (),
439
+ 'visible ' => $ object ->getVisible ()
439
440
);
440
441
441
442
// Setup the object form
@@ -477,7 +478,8 @@ protected function getUpdateEvent($formData)
477
478
->setChapo ($ formData ['chapo ' ])
478
479
->setDescription ($ formData ['description ' ])
479
480
->setPostscriptum ($ formData ['postscriptum ' ])
480
- ->setVisible ($ formData ['visible ' ]);
481
+ ->setVisible ($ formData ['visible ' ])
482
+ ->setKeywordGroupId ($ formData ['keyword_group_id ' ]);
481
483
482
484
return $ keywordUpdateEvent ;
483
485
}
@@ -599,6 +601,7 @@ protected function renderEditionTemplate()
599
601
protected function redirectToEditionTemplate ()
600
602
{
601
603
$ args = $ this ->getEditionArguments ();
604
+
602
605
return $ this ->generateRedirect ('/admin/module/Keyword/update?keyword_id= ' .$ args ['keyword_id ' ]);
603
606
}
604
607
@@ -637,4 +640,4 @@ protected function performAdditionalUpdateAction($updateEvent)
637
640
return $ this ->redirectToListTemplate ();
638
641
}
639
642
}
640
- }
643
+ }
0 commit comments