If no position specified put at the end

pull/2099/head
Hagen Schink 10 years ago
parent 382491bc54
commit a28dc41b71
  1. 6
      app/assets/javascripts/angular/work_packages/services/work-packages-overview-service.js

@ -64,7 +64,11 @@ module.exports = function(WORK_PACKAGE_ATTRIBUTES) {
var attributes = this.getGroupAttributes(groupName);
if (attributes) {
attributes.splice(position, 0, attribute);
if (position) {
attributes.splice(position, 0, attribute);
} else {
attributes.push(attribute);
}
}
},
addGroup: function(groupName, position) {

Loading…
Cancel
Save