Fix non-assignable expression issue

pull/1040/head
Till Breuer 11 years ago
parent 451431eb4f
commit 95567e2e1d
  1. 2
      app/assets/javascripts/angular/directives/work_packages/work-package-column-directive.js
  2. 1
      app/assets/javascripts/angular/helpers/components/custom-field-helper.js
  3. 2
      public/templates/work_packages/work_packages_table.html

@ -8,7 +8,7 @@ angular.module('openproject.workPackages.directives')
scope: {
workPackage: '=',
column: '=',
displayType: '='
displayType: '@'
},
templateUrl: '/templates/work_packages/work_package_column.html',
link: function(scope, element, attributes) {

@ -25,6 +25,7 @@ angular.module('openproject.helpers')
return CustomFieldHelper.booleanCustomFieldValue(value);
case 'user':
if (users && users[value]) {
// try to look up users
return users[value].name;
} else {
// return user id

@ -112,7 +112,7 @@
<span work-package-column
work-package="row.object"
column="column"
display-type="column.meta_data.data_type"/>
display-type="{{column.meta_data.data_type}}"/>
</td>
</tr>

Loading…
Cancel
Save