PLAT#39567: issuedate is niet verplicht bij nieuwe meldingen, gewoon default nu

svn path=/Website/branches/v2017.2/; revision=35511
This commit is contained in:
Jos Groot Lipman
2017-10-02 10:37:27 +00:00
parent afe3a08a1f
commit cef1fb3110

View File

@@ -445,6 +445,8 @@ function model_issues(mld_key, params)
api2.error(500, "Account could not be validated");
}
jsondata.account = kpkey;
if (!jsondata.issuedate)
jsondata.issuedate = new Date();
//
if (!jsondata.contact) jsondata.contact = user_key; // Als er geen aanvrager opgegeven is, dan de huidige gebruiker invullen.