Fix for 4832 - Re-editing a suggestion changes the item type

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Owen Leonard 2010-12-06 16:41:17 +01:00 committed by Chris Cormack
parent 5633b423e3
commit c9f3f2872f
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ h4.collapse a { font-size : 80%; text-decoration: none; } fieldset.brief ol { di
<li><label for="itemtype">Document Type:</label>
<select id="itemtype" name="itemtype" >
<!--TMPL_LOOP Name="itemtypeloop"-->
<!--TMPL_IF Name="selected"--><option selected="selected" value="<!--TMPL_VAR Name="code" -->"><!--TMPL_ELSE--><option value="<!--TMPL_VAR Name="code" -->"><!--/TMPL_IF-->
<!--TMPL_IF Name="selected"--><option selected="selected" value="<!--TMPL_VAR Name="itemtype" -->"><!--TMPL_ELSE--><option value="<!--TMPL_VAR Name="itemtype" -->"><!--/TMPL_IF-->
<!-- TMPL_IF name="imageurl"--><img border="0" src="<!--TMPL_VAR Name="imageurl" -->" alt="<!--TMPL_VAR Name="description" -->" /><!-- /TMPL_IF -->
<!--TMPL_VAR Name="description" --></option>
<!--/TMPL_LOOP-->

View File

@ -249,7 +249,7 @@ $template->param( branchloop => \@branchloop,
# the index parameter is different for item-level itemtypes
my $supportlist=GetSupportList();
foreach my $support(@$supportlist){
$$support{'selected'}= $$support{'code'} eq $$suggestion_ref{'itemtype'};
$$support{'selected'}= $$support{'itemtype'} eq $$suggestion_ref{'itemtype'};
if ($$support{'imageurl'}){
$$support{'imageurl'}= getitemtypeimagelocation( 'intranet', $$support{'imageurl'} );
}