This is an automated email from the ASF dual-hosted git repository.
husseinawala pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new c51901afc1 Differentiate 0 and unset as a default param values (#33965)
c51901afc1 is described below
commit c51901afc14bf82ff678226a7b8e32a972eff924
Author: Sam Wheating <[email protected]>
AuthorDate: Thu Aug 31 13:54:54 2023 -0700
Differentiate 0 and unset as a default param values (#33965)
---
airflow/www/templates/airflow/trigger.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow/www/templates/airflow/trigger.html
b/airflow/www/templates/airflow/trigger.html
index 69f168db52..72a0f28736 100644
--- a/airflow/www/templates/airflow/trigger.html
+++ b/airflow/www/templates/airflow/trigger.html
@@ -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 %} />