summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2020-01-21 10:26:56 +0000
committerThibault Delavallée <tde@odoo.com>2020-04-16 10:26:32 +0000
commitdd53c515c8c4d63ec714c765db911f2407bae175 (patch)
tree2d66fe86a217ef9e7d4f3e135d309068eed422aa
parente52489bf999e4d98499c493bd93f9aa6a04a6a47 (diff)
[IMP] website_slides: force duration to be positive in upload slide widget
To avoid user to set a negative duration on slide they upload using the upload widget, a min=0 has been added to the duration input of that widget. Task ID 1981399 PR #43577
-rw-r--r--addons/website_slides/static/src/xml/website_slides_upload.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_slides/static/src/xml/website_slides_upload.xml b/addons/website_slides/static/src/xml/website_slides_upload.xml
index fdf962af6cd..8de364a611b 100644
--- a/addons/website_slides/static/src/xml/website_slides_upload.xml
+++ b/addons/website_slides/static/src/xml/website_slides_upload.xml
@@ -73,7 +73,7 @@
<div class="form-group">
<label for="duration" class="col-form-label">Duration</label>
<div class="input-group">
- <input type="number" id="duration" name="duration" placeholder="Estimated slide completion time" class="form-control"/>
+ <input type="number" id="duration" min="0" name="duration" placeholder="Estimated slide completion time" class="form-control"/>
<div class="input-group-prepend">
<span class="input-group-text">Minutes</span>
</div>