Commit 15a6fa95 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

file/form.html fix file.id comparison on add

when adding there is obviously no file object to check.
parent b2c1cd38
......@@ -28,7 +28,7 @@
<td><select id="pre_process" name="pre_process" onChange="db.pre_process_onChange()" {{if source_module_active:}} disabled {{pass}}>
<option required_files="1" value="0">no pre-process (1 file)</option>
{{for row in pre_process_list :}}
<option title="{{=row["info"]}}" required_files="{{=row["file"]}}" value="{{=row["id"]}}" {{if row["id"]==file.pre_process_id :}}selected{{pass}}>
<option title="{{=row["info"]}}" required_files="{{=row["file"]}}" value="{{=row["id"]}}" {{if 'file_id' in request.vars and row["id"]==file.pre_process_id :}}selected{{pass}}>
{{=row["id"]}} &ndash; {{=row["name"]}}
</option> {{pass}}
</select>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment