MDL-63619 tool_dataprivacy: Fix inheritance from parent contexts
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 15 Oct 2018 02:45:31 +0000 (10:45 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 24 Oct 2018 00:48:18 +0000 (08:48 +0800)
commitd2aed789339dc4b534894b007fd6e570d3517c91
treed671985d07598d8e1a6beef6ca2f36e79e192082
parentdaf0b4f08be69c34550f9df47cef43b17473c372
MDL-63619 tool_dataprivacy: Fix inheritance from parent contexts

Inheritance should behave such that all contexts inherit from their
parent context.

Prior to this fix, if the value was not set on a context, then it was
getting a default of 'Inherit', but instead of inheritting from the
parent context, it was inheritting from its parent context _level_ which
is just wrong.
admin/tool/dataprivacy/classes/api.php
admin/tool/dataprivacy/classes/data_registry.php
admin/tool/dataprivacy/tests/api_test.php
admin/tool/dataprivacy/tests/behat/manage_defaults.feature
admin/tool/dataprivacy/tests/data_registry_test.php [new file with mode: 0644]