Remove JS errors appearing in public work package detail view

pull/3563/head
Alex Dik 9 years ago committed by Stefan Botzenhart
parent c01d0db034
commit 84e66ca050
  1. 5
      frontend/app/work_packages/services/work-package-field-service.js

@ -113,8 +113,9 @@ module.exports = function(
}
function getValue(workPackage, field, isReadMode) {
var payload = isReadMode ? workPackage : workPackage.form.embedded.payload;
//var payload = workPackage;
var embeddedPayload = isReadMode && workPackage.form && workPackage.form.embedded.payload;
var payload = embeddedPayload || workPackage;
if (field === 'date') {
if(isMilestone(workPackage)) {
return payload.props['dueDate'];

Loading…
Cancel
Save