Fix form field dependency check for nested dependencies
authorMatthias Schmidt <gravatronics@live.com>
Sun, 9 Sep 2018 07:31:13 +0000 (09:31 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 9 Sep 2018 07:31:13 +0000 (09:31 +0200)
commit5519da5cea3d8865e39737b1963aaddd20619df2
treeb9fb4e417f9a1beba3a87a3f0a65cb31c1a5a013
parent2dd4800f9c34f0c7bee0506b34d2ea69c3e24593
Fix form field dependency check for nested dependencies

If field C depends on field B which in turn depends on field A and if field B is unavailable because of its dependencies on field A, field C's explicit dependencies on field B might have still be fulfilled even though field B is unavailable.
Instead of just checking the dependency, we must also check if the depending field fulfills its dependencies.

See #2509
wcfsetup/install/files/lib/system/form/builder/TFormNode.class.php