{"issue":{"state":"open","created_at":"2011-11-29T07:32:45Z","updated_at":"2011-11-29T07:32:45Z","user":{"gravatar_id":"256406243346b9253f8610fb1d1e05f6","id":1215373,"url":"https://api.github.com/users/importer","avatar_url":"https://secure.gravatar.com/avatar/256406243346b9253f8610fb1d1e05f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"importer"},"comments":0,"body":"in libraries/User.php:\nab Zeile 84 neu:\n\n```\n\t/**\n\t * User import object\n\t * @var object\n\t */\n\tprotected $objImport;\n```\n\nab Zeile 178:\n\n```\n\t\t\t// HOOK: pass credentials to callback functions\n\t\t\tif (isset($GLOBALS['TL_HOOKS']['importUser']) && is_array($GLOBALS['TL_HOOKS']['importUser']))\n\t\t\t{\n\t\t\t\tforeach ($GLOBALS['TL_HOOKS']['importUser'] as $callback)\n\t\t\t\t{\n\t\t\t\t\t$this->import($callback[0]);\n\t\t\t\t\t$blnLoaded = $this->$callback[0]->$callback[1]($this->Input->post('username'), $this->Input->post('password'), $this->strTable);\n\t\t\t\t\t// Load successfull\n\t\t\t\t\tif ($blnLoaded === true)\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n```\n\ngeaendert in:\n\n```\n\t\t\t// HOOK: pass credentials to callback functions\n\t\t\tif (isset($GLOBALS['TL_HOOKS']['importUser']) && is_array($GLOBALS['TL_HOOKS']['importUser']))\n\t\t\t{\n\t\t\t\tforeach ($GLOBALS['TL_HOOKS']['importUser'] as $callback)\n\t\t\t\t{\n\t\t\t\t\t$this->import($callback[0], 'objImport', true);\n\t\t\t\t\t$blnLoaded = $this->objImport->$callback[1]($this->Input->post('username'), $this->Input->post('password'), $this->strTable);\n\t\t\t\t\t// Load successfull\n\t\t\t\t\tif ($blnLoaded === true)\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n```\n\nAnsonsten versucht Model::save anschliessend die zuletzt verwendete Importer Klasse in die DB zu speichern.\n\nRelated issues: #1222\n\n--- _Originally created by xtra on November 30th, 2009, at 05:33pm (ID 1221)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"number":1221,"id":2379862,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"name":"Defect","color":"bd2c00","url":"https://api.github.com/repos/contao/test/labels/Defect"},{"name":"framework","color":"e6e6e6","url":"https://api.github.com/repos/contao/test/labels/framework"}],"title":"Bug in User.php - importUser HOOK breaks Model::save();","closed_at":null,"html_url":"https://github.com/contao/test/issues/1221","url":"https://api.github.com/repos/contao/test/issues/1221","milestone":{"state":"open","created_at":"2011-11-29T05:26:41Z","closed_issues":157,"due_on":null,"creator":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"number":9,"title":"2.8.0","description":"TYPOlight 2.8.0 (minor release)","open_issues":1,"url":"https://api.github.com/repos/contao/test/milestones/9"}},"action":"opened"}