Skip to content

Commit

Permalink
Differentiate 0 and unset as a default param values (#33965)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWheating authored Aug 31, 2023
1 parent 0a5e228 commit c51901a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/www/templates/airflow/trigger.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
{% elif form_details.schema and ("integer" in form_details.schema.type or "number" in form_details.schema.type) %}
<input class="form-control" name="element_{{ form_key }}" id="element_{{ form_key }}"
valuetype="number" {% if "integer" in form_details.schema.type %} type="number" {% else %} type="decimal" {% endif %}
value="{% if form_details.value %}{{ form_details.value }}{% endif %}"
value="{% if form_details.value is not none %}{{ form_details.value }}{% endif %}"
{%- if form_details.schema.minimum %} min="{{ form_details.schema.minimum }}"{% endif %}
{%- if form_details.schema.maximum %} max="{{ form_details.schema.maximum }}"{% endif %}
{%- if form_details.schema.type and not "null" in form_details.schema.type %} required=""{% endif %} />
Expand Down

0 comments on commit c51901a

Please sign in to comment.