From c24ac1c18e26b6a24a4d294744908fb0c53ddf3c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 May 2017 14:29:58 +0200 Subject: Fix unset video language on video update --- server/helpers/custom-validators/videos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/helpers') diff --git a/server/helpers/custom-validators/videos.js b/server/helpers/custom-validators/videos.js index 8dabb828d..196731e04 100644 --- a/server/helpers/custom-validators/videos.js +++ b/server/helpers/custom-validators/videos.js @@ -53,7 +53,7 @@ function isVideoLicenceValid (value) { } function isVideoLanguageValid (value) { - return constants.VIDEO_LANGUAGES[value] !== undefined + return value === null || constants.VIDEO_LANGUAGES[value] !== undefined } function isVideoNSFWValid (value) { -- cgit v1.2.3