Fixes  #5631: Migrate directive withou change in form work again
Merge pull request #629 from VinceMacBuche/bug_5631/migrate_directive

Fixes  #5631: Migrate directive withou change in form work again