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:
parent
5633b423e3
commit
c9f3f2872f
|
|
@ -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-->
|
||||
|
|
|
|||
|
|
@ -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'} );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue