Commit 8056c3ae authored by Frank Bergmann's avatar Frank Bergmann

- Now explicitly detecting the case of a "more" (start_ and end_date

  change together). A move should trigger just a schedule, but not a
  change of duration (resizing the task), as this affects the
  assigned resources
parent bdd3eeea
......@@ -53,6 +53,17 @@ Ext.define('GanttEditor.controller.GanttSchedulingController', {
treeStore.suspendEvents(false);
var dirty = false;
if (null != fieldsChanged) {
// Check the case that start- and end-date are changed together (move)
// A move is different from a change of either start- or end-date.
if (fieldsChanged.includes("start_date")) {
if (fieldsChanged.includes("end_date")) {
dirty = true;
fieldsChanged.splice(fieldsChanged.indexOf('start_date'), 1);
fieldsChanged.splice(fieldsChanged.indexOf('end_date'), 1);
}
}
fieldsChanged.forEach(function(fieldName) {
if (me.debug) console.log('PO.controller.gantt_editor.GanttSchedulingController.onTreeStoreUpdate: Field changed='+fieldName);
switch (fieldName) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment