Details
-
Bug
-
Resolution: Duplicate
-
High
-
None
-
1.7.6
-
None
Description
After creating a new Role, when you try to add new Policy, you are unable to add new Limitations to it. Clicking on "Save and add limitations" results in the following error in the Platform UI: "Failed to load 'http://your-site.dev/pjax/role/policy/5/334'". This happens only in dev environment.
Related error from the logs:
[2017-12-15 09:03:51] request.CRITICAL: Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("Could not find 'location' with identifier ''")." at XXX\vendor\ezsystems\repository-forms\bundle/Resources/views/Limitation/udw_limitation_value.html.twig line 14 {"exception":"[object] (Twig_Error_Runtime(code: 0): An exception has been thrown during the rendering of a template (\"Could not find 'location' with identifier ''\"). at C:\\Apache24\\htdocs\\ezplatform\\vendor\\ezsystems\\repository-forms\\bundle/Resources/views/Limitation/udw_limitation_value.html.twig:14, eZ\\Publish\\Core\\Base\\Exceptions\\NotFoundException(code: 404): Could not find 'location' with identifier '' at C:\\Apache24\\htdocs\\ezplatform\\vendor\\ezsystems\\ezpublish-kernel\\eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Location\\Gateway\\DoctrineDatabase.php:84)"} []
This functionality works correctly on eZ Platform 1.12.2.
Steps to reproduce
- Create new eZ Platform 1.7 installation. Use dev environment.
- Create a new Role.
- Create a new Content/Read Policy in the Role created in the previous step. Click on "Save and add limitations" to save it.
- Confirm the error described above.
Attachments
Issue Links
- duplicates
-
EZP-27819 Template exception when editing policies with no node and subtree limitation
- Closed