{"action":"opened","issue":{"url":"https://api.github.com/repos/plone/Products.CMFPlone/issues/1821","repository_url":"https://api.github.com/repos/plone/Products.CMFPlone","labels_url":"https://api.github.com/repos/plone/Products.CMFPlone/issues/1821/labels{/name}","comments_url":"https://api.github.com/repos/plone/Products.CMFPlone/issues/1821/comments","events_url":"https://api.github.com/repos/plone/Products.CMFPlone/issues/1821/events","html_url":"https://github.com/plone/Products.CMFPlone/issues/1821","id":186415811,"number":1821,"title":"Legacy bundle does no honor TAL expressions","user":{"login":"hvelarde","id":341393,"avatar_url":"https://avatars.githubusercontent.com/u/341393?v=3","gravatar_id":"","url":"https://api.github.com/users/hvelarde","html_url":"https://github.com/hvelarde","followers_url":"https://api.github.com/users/hvelarde/followers","following_url":"https://api.github.com/users/hvelarde/following{/other_user}","gists_url":"https://api.github.com/users/hvelarde/gists{/gist_id}","starred_url":"https://api.github.com/users/hvelarde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hvelarde/subscriptions","organizations_url":"https://api.github.com/users/hvelarde/orgs","repos_url":"https://api.github.com/users/hvelarde/repos","events_url":"https://api.github.com/users/hvelarde/events{/privacy}","received_events_url":"https://api.github.com/users/hvelarde/received_events","type":"User","site_admin":false},"labels":[{"id":129904896,"url":"https://api.github.com/repos/plone/Products.CMFPlone/labels/01%20type:%20bug","name":"01 type: bug","color":"fa0000","default":false},{"id":274266956,"url":"https://api.github.com/repos/plone/Products.CMFPlone/labels/21%20status:%20confirmed","name":"21 status: confirmed","color":"fafa00","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/plone/Products.CMFPlone/milestones/5","html_url":"https://github.com/plone/Products.CMFPlone/milestones/Plone%205.0.x","labels_url":"https://api.github.com/repos/plone/Products.CMFPlone/milestones/5/labels","id":1313482,"number":5,"title":"Plone 5.0.x","description":"","creator":{"login":"esteele","id":483999,"avatar_url":"https://avatars.githubusercontent.com/u/483999?v=3","gravatar_id":"","url":"https://api.github.com/users/esteele","html_url":"https://github.com/esteele","followers_url":"https://api.github.com/users/esteele/followers","following_url":"https://api.github.com/users/esteele/following{/other_user}","gists_url":"https://api.github.com/users/esteele/gists{/gist_id}","starred_url":"https://api.github.com/users/esteele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esteele/subscriptions","organizations_url":"https://api.github.com/users/esteele/orgs","repos_url":"https://api.github.com/users/esteele/repos","events_url":"https://api.github.com/users/esteele/events{/privacy}","received_events_url":"https://api.github.com/users/esteele/received_events","type":"User","site_admin":false},"open_issues":145,"closed_issues":58,"state":"open","created_at":"2015-09-18T14:29:54Z","updated_at":"2016-10-31T22:27:51Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-10-31T22:27:51Z","updated_at":"2016-10-31T22:27:51Z","closed_at":null,"body":"We have a package that [registers some JS code](https://github.com/collective/collective.glossary/blob/master/src/collective/glossary/profiles/default/jsregistry.xml) and displays it using a TAL expression like this:\r\n\r\n```xml\r\n<?xml version=\"1.0\"?>\r\n<object name=\"portal_javascripts\">\r\n  <javascript id=\"++resource++collective.glossary/main.js\"\r\n              expression=\"context/@@glossary_state\"\r\n              insert-after=\"*\" />\r\n</object>\r\n```\r\n\r\nThe `glossary_state` view checks some constrains to validate if the JS code must be loaded or not:\r\n\r\n```python\r\nclass GlossaryStateView(BrowserView):\r\n    ...\r\n    def __call__(self):\r\n        return self.tooltip_is_enabled and self.content_type_is_enabled and self.is_view_action\r\n```\r\n\r\nSo, in Plone 4 the code is not loaded in the` @@edit` view, but in Plone 5 this is not honored and the code is loaded always leading to some unintended consequences like losing the content on the body text field.."}}
{"actor":{"display_login":"hvelarde"}}