Skip to content
Snippets Groups Projects
Commit ae324d37 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

date validation: bugfix

parent ed2fe698
No related branches found
No related tags found
No related merge requests found
......@@ -15,12 +15,11 @@ function DateUtils() {}
* @param pStart {Number}
* @param pEnd {Number}
*
* @result {Boolean|null} Boolean if it was able to check smth or null if the input values were not valid
* @result {Boolean} Boolean if it was able to check. True if one of them is null / "" because this should be checked by mandatory if needed.
*/
DateUtils.validateBeginnBeforeEnd = function(pStart, pEnd) {
if (!pStart || !pEnd)
return null;
return true;
return pStart <= pEnd;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment