{"issue":{"created_at":"2011-11-24T08:58:22Z","state":"open","updated_at":"2011-11-24T08:58:23Z","user":{"gravatar_id":"256406243346b9253f8610fb1d1e05f6","id":1215373,"url":"https://api.github.com/users/importer","login":"importer","avatar_url":"https://secure.gravatar.com/avatar/256406243346b9253f8610fb1d1e05f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":1,"body":"I found a problem in Widget PageTree on my TL 2.6beta2, it might also exist on older version.\n\nThe PageTree generateAjax() does not work if you don't use dataContainer Table. I have tried to add a page tree to the settings, and you'll get a Database error.\n\nHere's what I patched on line 163ff of PageTree.php:\n\n```\n// Load current values\n$this->loadDataContainer($this->strTable);\nif ($GLOBALS['TL_DCA'][$this->strTable]['config']['dataContainer'] == 'File')\n{\n    if (strlen($GLOBALS['TL_CONFIG'][$strField]))\n    {\n        $this->varValue = $GLOBALS['TL_CONFIG'][$strField];\n    }\n}\nelseif ($this->Database->fieldExists($strField, $this->strTable))\n{\n    $objField = $this->Database->prepare(\"SELECT \" . $strField . \" FROM \" . $this->strTable . \" WHERE id=?\")\n                               ->limit(1)\n                               ->execute($this->strId);\n\n    if ($objField->numRows)\n    {\n        $this->varValue = deserialize($objField->$strField);\n    }\n}\n```\n\n--- _Originally created by andreas.schempp on August 18th, 2008, at 07:05pm (ID 3)_","assignee":{"gravatar_id":"360d94de41513598ac4440d46a3dab1b","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/360d94de41513598ac4440d46a3dab1b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"id":2338687,"labels":[{"name":"backend","color":"e6e6e6","url":"https://api.github.com/repos/contao/issues/labels/backend"},{"name":"Defect","color":"bd2c00","url":"https://api.github.com/repos/contao/issues/labels/Defect"}],"number":3,"title":"pageTree Widget, dataContainer != Table","closed_at":null,"html_url":"https://github.com/contao/issues/issues/3","milestone":{"created_at":"2011-11-24T08:57:00Z","state":"open","closed_issues":0,"due_on":null,"creator":{"gravatar_id":"360d94de41513598ac4440d46a3dab1b","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/360d94de41513598ac4440d46a3dab1b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"number":3,"description":"TYPOlight 2.6.1 (maintenance release)","title":"2.6.1","url":"https://api.github.com/repos/contao/issues/milestones/3","open_issues":1},"url":"https://api.github.com/repos/contao/issues/issues/3"},"action":"created","comment":{"created_at":"2011-11-24T08:58:23Z","updated_at":"2011-11-24T08:58:23Z","user":{"gravatar_id":"360d94de41513598ac4440d46a3dab1b","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/360d94de41513598ac4440d46a3dab1b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"The page tree widget is for page trees only. It is not meant to work with file trees. If you need a file tree, use the file tree widget or create your own.\n\n--- _Originally created on August 19th, 2008, at 02:15pm_","id":2859799,"url":"https://api.github.com/repos/contao/issues/issues/comments/2859799"}}