forked from zendframework/zend-form
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch removes the change introduced in 2.7.1's `Zend\Form\Factory::create()` method that aggregated options and passed them to the `FormElementManager::get()` call. This usage was incorrect, as it creates an order-of-operations problem: most instances call their own `setOptions()` method from the constructor if options are present, and many of the actions this executes assume things like a populated `FormElementManager`, using a default instance if none is found! As such, reverting those changes to pre-2.7.1 usage fixes the issues reported in zendframework#66. Since the changes were done under an erroneous assumption, a test related to the incorrect functionality was also removed.
- Loading branch information
1 parent
60de7d8
commit 8660a5d
Showing
5 changed files
with
4 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters