{"issue":{"created_at":"2011-11-29T18:48:26Z","state":"closed","updated_at":"2011-11-29T18:48:30Z","comments":2,"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"},"body":"Hallo Leo,\n\nes gibt kein maxlength bei den textareas im Formular generator. Wenn man ein Inputfeld dupliziert, welches eine maxlength von z.b. 10 hat, und nun auf den Typ textarea wechselt, wird das Feld maxlength nicht mehr angezeigt. Im Frontend wird der Wert trotzdem abgefragt, was natürlich dazu für das der jenige der das Formular ausfüllt keine Nachricht mit mehr als z.B. 10 Zeichen verfassen kann.\n\nKlar man kann im backend den maxlength wert vorher leeren oder einfach kurz wieder auf Textfeld wechseln und den wert dann raus nehmen. Allerdings ist das recht unelegant und kann Schnell zu einer Hürde für \"unbeholfe User\" werden ;)\n\nWenn einer das ganze jetzt erstmal fixen will, kann das mit folgendem Code Snippet in der dcaconfig.php erfolgen:\n\n```\n    $GLOBALS['TL_DCA']['tl_form_field']['palettes']['textarea'] = str_replace\n    (\n        'size',\n        'size,maxlength',\n        $GLOBALS['TL_DCA']['tl_form_field']['palettes']['textarea']\n    );\n\n```\n\n--- _Originally created by may17 on May 16th, 2010, at 05:35pm (ID 1960)_","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"},"id":2390032,"number":1960,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"name":"Defect","color":"bd2c00","url":"https://api.github.com/repos/contao/import/labels/Defect"},{"name":"framework","color":"e6e6e6","url":"https://api.github.com/repos/contao/import/labels/framework"}],"title":"Maxlength fehlt bei dem Feldtyp Textarea im Formgenerator","closed_at":"2011-11-29T18:48:30Z","html_url":"https://github.com/contao/import/issues/1960","url":"https://api.github.com/repos/contao/import/issues/1960","milestone":{"created_at":"2011-11-29T15:29:48Z","state":"closed","due_on":null,"closed_issues":49,"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":25,"description":"Contao 2.9.0 (minor release)","title":"2.9.0","url":"https://api.github.com/repos/contao/import/milestones/25","open_issues":0}},"action":"closed"}