Skip to content

Commit

Permalink
check state_id before casting
Browse files Browse the repository at this point in the history
  • Loading branch information
carcaroff committed Aug 24, 2021
1 parent e5c3168 commit 1730f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_br_website_sale/views/website_sale_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<label class="col-form-label" for="state_id">Estado</label>
<input id="input_state_id" type="hidden" t-att-value="'state_id' in checkout and checkout['state_id']" />
<select id="select_state_id" name="state_id" t-attf-class="form-control #{error.get('state_id') and 'is-invalid' or ''}"
t-att-data-default="'state_id' in checkout and int(checkout['state_id'])">
t-att-data-default="'state_id' in checkout and checkout['state_id'] and int(checkout['state_id'])">
<option value="">Estado...</option>
</select>
</div>
Expand Down

0 comments on commit 1730f4f

Please sign in to comment.