cross
Foswiki General Assembly will be held on 12th December 2019, 1200 UTC on Freenode IRC channel #foswiki-association. See AgendaTenthGeneralAssembly

Item14391: Comment macro needs a way to suppress empty posts.

pencil
Priority: Enhancement
Current State: Confirmed
Released In: n/a
Target Release: minor
Applies To: Extension
Component: CommentPlugin
Branches:
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
I do this all the time and have noticed others as well, don't notice where the focus is, hit enter, and post an empty comment into the Tasks web.

Add an option to the %COMMENT{ macro:
Name Description Default
noempty Suppress empty comments if enabled. off

The use of "noempty" is consistent with the other "no*" parameters, nopost, nonotify, noform.

-- GeorgeClark - 07 May 2017

We would also need a way to alter the default, Possibly COMMENTPLUGIN_NOEMPTY configuration variable?

-- GeorgeClark - 07 May 2017

Setting this to confirmed, though in looking at the code, it will be complex. Another option might be some way to set a template field as "required" to block empty comments.

-- GeorgeClark - 03 Jun 2017
 

ItemTemplate edit

Summary Comment macro needs a way to suppress empty posts.
ReportedBy GeorgeClark
Codebase 2.1.3
SVN Range
AppliesTo Extension
Component CommentPlugin
Priority Enhancement
CurrentState Confirmed
WaitingFor
Checkins
TargetRelease minor
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r2 - 03 Jun 2017, GeorgeClark - This page was cached on 06 Dec 2019 - 03:26.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy