|
From: Benjamin C. <bc...@us...> - 2002-09-16 19:39:37
|
Update of /cvsroot/phpbt/phpbt/templates/default/admin
In directory usw-pr-cvs1:/tmp/cvs-serv8398/templates/default/admin
Modified Files:
component-edit.html version-edit.html
Log Message:
Fixes bug #602008 - Submitting a component or version with an error causes second submission to fail.
Index: component-edit.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/component-edit.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- component-edit.html 16 Sep 2002 19:04:30 -0000 1.5
+++ component-edit.html 16 Sep 2002 19:39:34 -0000 1.6
@@ -4,8 +4,8 @@
<form action="{$smarty.server.PHP_SELF}" method="post">
<table border="0">
<input type="hidden" name="do" value="component">
- <input type="hidden" name="componentid" value="{$component_id}">
- <input type="hidden" name="projectid" value="{$project_id}">
+ <input type="hidden" name="component_id" value="{$component_id}">
+ <input type="hidden" name="project_id" value="{$project_id}">
<input type="hidden" name="use_js" value="{$smarty.request.use_js}">
<tr>
<td valign="top">
@@ -36,7 +36,7 @@
Active:
</td>
<td valign="top">
- <input type="checkbox" name="active" value="1" {if $active}checked{/if}>
+ <input type="checkbox" name="active" value="1" {if $active or not $component_id}checked{/if}>
</td>
</tr>
<tr>
Index: version-edit.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/version-edit.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- version-edit.html 16 Sep 2002 19:04:34 -0000 1.5
+++ version-edit.html 16 Sep 2002 19:39:34 -0000 1.6
@@ -4,8 +4,8 @@
<form action="{$smarty.server.PHP_SELF}" method="post">
<table border="0">
<input type="hidden" name="do" value="version">
- <input type="hidden" name="versionid" value="{$version_id}">
- <input type="hidden" name="projectid" value="{$project_id}">
+ <input type="hidden" name="version_id" value="{$version_id}">
+ <input type="hidden" name="project_id" value="{$project_id}">
<input type="hidden" name="use_js" value="{$smarty.request.use_js}">
<tr>
<td valign="top">
@@ -20,7 +20,7 @@
Active:
</td>
<td valign="top">
- <input type="checkbox" name="active" value="1" {if $active}checked{/if}>
+ <input type="checkbox" name="active" value="1" {if $active or not $version_id}checked{/if}>
</td>
</tr>
<tr>
|