Merged r14967 to r14969 (#21488).

git-svn-id: http://svn.redmine.org/redmine/branches/3.1-stable@14983 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2015-12-19 08:14:48 +00:00
parent 21e551369c
commit 9619aa9814
3 changed files with 30 additions and 4 deletions

View File

@@ -555,7 +555,13 @@ function beforeShowDatePicker(input, inst) {
break;
case "issue_due_date" :
if ($("#issue_start_date").size() > 0) {
default_date = $("#issue_start_date").val();
var start_date = $("#issue_start_date").val();
if (start_date != "") {
start_date = new Date(Date.parse(start_date));
if (start_date > new Date()) {
default_date = $("#issue_start_date").val();
}
}
}
break;
}