]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/Allow_web_edit_form_comment_field_to_be_mandatory.mdwn
ikiwiki (3.20130711) unstable; urgency=low
[ikiwiki.git] / doc / todo / Allow_web_edit_form_comment_field_to_be_mandatory.mdwn
1 [[!tag wishlist]]
2 [[!tag patch]]
3
4 In our team internal wiki, we wish to impose a policy that all edits must have a comment. Patch in [[!debbug 450620]].
5
6 > Good idea! I also hate empty commit comments, but I know that it's also a matter
7 > of human mentality. Of course, you can forbid users to commit empty comments,
8 > but then they can commit so worthless comments like "\*" or "\* blah". --[[PaweÅ‚|ptecza]]
9
10 > I don't feel this belongs in ikiwiki core, but would accept a plugin that
11 > does it. I think that can be done using a formbuilder_setup hook.
12 > BTW, it wuld probably be better to validate against a `comment_regexp`,
13 > so that when the evil admins notice that /.+/ is absurdly easy for users
14 > to get around (by using " "), they can tighten it down. --[[Joey]]
15
16 > Sorry for being dense, but I don't see a way to modify the template from within
17 > a plugin, without providing a whole new template for editform, which obviously
18 > isn't a workable solution. If the template was modified to allow overriding the
19 > portion of the message in question, then I agree that a plugin couuld do the rest.
20 > Thoughts appreciated :) --[[Dom]]
21
22 > Yes, modifying the template is ok. --[[Joey]]