diff --git a/templates/customer/form.html.twig b/templates/customer/form.html.twig index e6d2fd09..bc4d8074 100644 --- a/templates/customer/form.html.twig +++ b/templates/customer/form.html.twig @@ -934,7 +934,7 @@ $("#vehicle-form-modal").on('hidden.bs.modal', function(e) { $("#flag-motolite-battery").prop('checked', false).change(); $("#flag-active").prop('checked', true); - $("#vehicle-form").find("input[type='text'], select").val("").change(); + $("#vehicle-form").find("input[type='text'], input[type='hidden'], select").val("").change(); removeVehicleErrors(); }); @@ -979,7 +979,7 @@ field: 'model_year', title: 'Year', template: function (row, index, datatable) { - return row.model_year + '
'; + return (typeof row.model_year !== 'undefined' ? row.model_year : '-') + '
'; } }, {