NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item11383 for general documentation changes for release 1.1.5. Use
Item9693 for docu changes for release 2.0.
Item6057: Comment forrm that updates TWikiForm data fails with version control system error
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Normal |
No Action Required |
Extension |
CommentPlugin |
|
I have a form attached to my page.
I have a
CommentPlugin template that puts up a simple menu to let the user change a data field in the attached TWiki form without the need to cclick Edit.
When the Comment template is defined in
UserCommentsTemplate, it works as expected. However, when it is defined in another topic and I use the templatetopic= parameter to access it, it fails.
%COMMENT{type="statusupdate" target="%INCLUDINGTOPIC%" templatetopic="VickiCommentTemplate"}%
The failure mode is:
- CommentPlugin sees the template and presents the menu onm the screen
- menu item can be selected * On submit, there is an error:
During save of Sandbox.VickiBrownSandbox an error was found by the version control system. Please notify your TWiki administrator.
%RED%No such template def TMPL:DEF{OUTPUT:statusupdate}%ENDCOLOR% at /var/www/twiki-local/lib/TWiki/Plugins/CommentPlugin/Comment.pm line 261.
at /var/www/twiki-local/lib/TWiki/Plugins/CommentPlugin/Comment.pm line 261
...
--
TWiki:Main/VickiBrown - 10 Oct 2008
Your definition of OUTPUT:statusupdate contains one call, to OUTPUT:threadmode. Because you have specified that you want to get templates from your template topic, the threadmode templates are not loaded. So to the code, it looks like OUTPUT:statusupdate is undefined.
When I change your output template to
X it works fine.
No action required.
--
CrawfordCurrie - 26 Jun 2010