Index: openacs-4/packages/general-comments/www/comment-edit-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/general-comments/www/comment-edit-2.tcl,v diff -u -N -r1.8.2.2 -r1.8.2.3 --- openacs-4/packages/general-comments/www/comment-edit-2.tcl 29 Apr 2022 08:02:11 -0000 1.8.2.2 +++ openacs-4/packages/general-comments/www/comment-edit-2.tcl 3 Oct 2022 12:20:37 -0000 1.8.2.3 @@ -18,7 +18,7 @@ object_id:naturalnum,notnull title:notnull,printable,string_length(max|200) content:notnull,html - comment_mime_type:notnull,printable + comment_mime_type:oneof(text/plain|text/html),notnull { return_url:localurl {} } } -properties { page_title:onevalue @@ -27,13 +27,6 @@ title:onevalue content:onevalue target:onevalue -} -validate { - comment_mime_type_allowed -requires comment_mime_type:notnull,printable { - if {$comment_mime_type ni {"text/plain" "text/html"}} { - ad_complain [_ acs-tcl.lt_name_is_not_valid [list name comment_mime_type]] - return - } - } }