{"action":"created","issue":{"url":"https://api.github.com/repos/turnkeylinux/tracker/issues/607","repository_url":"https://api.github.com/repos/turnkeylinux/tracker","labels_url":"https://api.github.com/repos/turnkeylinux/tracker/issues/607/labels{/name}","comments_url":"https://api.github.com/repos/turnkeylinux/tracker/issues/607/comments","events_url":"https://api.github.com/repos/turnkeylinux/tracker/issues/607/events","html_url":"https://github.com/turnkeylinux/tracker/issues/607","id":147757642,"number":607,"title":"Moodle 2.9 on Turnkey 13 Footer Conflicts with Configurable Reports Plugin 2.3.9","user":{"login":"leeand00","id":83778,"avatar_url":"https://avatars.githubusercontent.com/u/83778?v=3","gravatar_id":"","url":"https://api.github.com/users/leeand00","html_url":"https://github.com/leeand00","followers_url":"https://api.github.com/users/leeand00/followers","following_url":"https://api.github.com/users/leeand00/following{/other_user}","gists_url":"https://api.github.com/users/leeand00/gists{/gist_id}","starred_url":"https://api.github.com/users/leeand00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeand00/subscriptions","organizations_url":"https://api.github.com/users/leeand00/orgs","repos_url":"https://api.github.com/users/leeand00/repos","events_url":"https://api.github.com/users/leeand00/events{/privacy}","received_events_url":"https://api.github.com/users/leeand00/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/turnkeylinux/tracker/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/turnkeylinux/tracker/labels/moodle","name":"moodle","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-12T13:50:38Z","updated_at":"2016-04-15T14:24:28Z","closed_at":null,"body":"When the footer\r\n`\r\n<div id='turnkey-credit'> <div> <a href='http://www.turnkeylinux.org/moodle'>Moodle Appliance</a> - Powered by <a href='http://www.turnkeylinux.org'>TurnKey Linux</a> </div>`\r\n\r\nis tacked on to the bottom of every page in Turnkey Linux it causes the printDiv function to fail when printing reports from Configurable Reports.\r\n\r\nThat said it can be fixed in the following manner:\r\n\r\n1. In the configurable reports plugin, you can edit configurable_reports/locallib.php\r\n1. Search for the printDiv Javascript function.\r\n1. On the line that reads tmpw.document.write('&lt;/body&gt;&lt;/html&gt;'); change the single quotes to double quotes.\r\n\r\nOr you guys could just change your footer, wasn't sure where to note that exactly, but I imagine the footer is in the database somewhere as a grep of the moodle folder didn't yield a result.\r\n\r\n[See the issue also posted here](https://tracker.moodle.org/browse/CONTRIB-6237)"},"comment":{"url":"https://api.github.com/repos/turnkeylinux/tracker/issues/comments/210481465","html_url":"https://github.com/turnkeylinux/tracker/issues/607#issuecomment-210481465","issue_url":"https://api.github.com/repos/turnkeylinux/tracker/issues/607","id":210481465,"user":{"login":"leeand00","id":83778,"avatar_url":"https://avatars.githubusercontent.com/u/83778?v=3","gravatar_id":"","url":"https://api.github.com/users/leeand00","html_url":"https://github.com/leeand00","followers_url":"https://api.github.com/users/leeand00/followers","following_url":"https://api.github.com/users/leeand00/following{/other_user}","gists_url":"https://api.github.com/users/leeand00/gists{/gist_id}","starred_url":"https://api.github.com/users/leeand00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeand00/subscriptions","organizations_url":"https://api.github.com/users/leeand00/orgs","repos_url":"https://api.github.com/users/leeand00/repos","events_url":"https://api.github.com/users/leeand00/events{/privacy}","received_events_url":"https://api.github.com/users/leeand00/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T14:24:28Z","updated_at":"2016-04-15T14:24:28Z","body":"I don't believe it's pre-installed, I had to install it myself as a plugin; but if this one is having issues with it, it sort of makes me wonder about other plugins.\r\n\r\nThanks for showing me where that is getting added to the page!  I didn't think of Apache having a mod in there.\r\n\r\nWell it looks like that's second reference is just a bash script, [and you can escape the double quote in bash using \\\"](http://stackoverflow.com/a/3834857/18149) so it shouldn't be too hard to fix, so long as mod_substitute is okay with the result...it too might require some more escaping depending on the regex engine.  "}}