Skip to content

Commit a56382e

Browse files
committed
PL: only set nominated URL parameter in ZIP submission when it's true
1 parent 3bb41c7 commit a56382e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pegasus/sites.v3/code.org/views/regional_partner_zip_form.haml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
%form{action: "/educate/professional-learning/program-information", method: "get"}
99
%span{style: "font-size:1.2em"} Zip:
1010
%input{type: "text", name: "zip", style: "padding:10px"}
11-
%input{type: "text", name: "nominated", value: params[:nominated], hidden: "true"}
11+
- if params[:nominated]
12+
%input{type: "text", name: "nominated", value: params[:nominated], hidden: "true"}
1213
%input{type: "submit", value: "Submit", style: "color:white; background-color:orange; padding:10px; font-size:1.2em"}
1314
1415
= view :course_wide_block, cta_link: link, img: CDO.code_org_url(http://github.com/'/shared/images/banners/small-teal-icons.png'), title: 'Scholarships Available', description: body

0 commit comments

Comments
 (0)