bug:2645 author field is kept when comment not validated

git-svn-id: http://piwigo.org/svn/trunk@15570 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100
2012-06-05 19:51:54 +00:00
parent bf80d3f3bd
commit 56cfd9b3ac
2 changed files with 7 additions and 5 deletions
+3 -3
View File
@@ -347,9 +347,9 @@ function togglePrivacyLevelBox()
<h4>{'Add a comment'|@translate}</h4>
<form method="post" action="{$comment_add.F_ACTION}" id="addComment">
{if $comment_add.SHOW_AUTHOR}
<p><label>{'Author'|@translate} :</label></p>
<p><input type="text" name="author"></p>
<p><label>{'Comment'|@translate} :</label></p>
<p><label for="author">{'Author'|@translate} :</label></p>
<p><input type="text" name="author" id="author" value="{$comment_add.AUTHOR}"></p>
<p><label for="contentid">{'Comment'|@translate} :</label></p>
{/if}
<p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p>
<p><input type="hidden" name="key" value="{$comment_add.KEY}">