Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added record has wrong WBS #7303

Closed
bmblb opened this issue Aug 11, 2023 · 0 comments
Closed

Added record has wrong WBS #7303

bmblb opened this issue Aug 11, 2023 · 0 comments
Assignees
Labels
bug Something isn't working OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@bmblb
Copy link

bmblb commented Aug 11, 2023

Reported by client.
Steps to reproduce on basic gantt demo:

  1. disable autoLoad
  2. load this data
gantt.project.loadInlineData({
    eventsData : [
        {
            id                 : '71114',
            orderedParentIndex : 0,
            duration           : 1,
            durationUnit       : 'day',
            cls                : '',
            name               : 'a',
            manuallyScheduled  : false,
            unscheduled        : false,
            percentDone        : 0,
            effortUnit         : 'hour',
            effortDriven       : false,
            schedulingMode     : 'Normal',
            baselines          : [],
            wbsValue           : '1'
        },
        {
            id                 : '71116',
            orderedParentIndex : 1,
            duration           : 1,
            durationUnit       : 'day',
            cls                : '',
            name               : 'c',
            manuallyScheduled  : false,
            unscheduled        : false,
            percentDone        : 0,
            effortUnit         : 'hour',
            effortDriven       : false,
            schedulingMode     : 'Normal',
            baselines          : [],
            wbsValue           : '2'
        },
        {
            id                 : '71115',
            orderedParentIndex : 2,
            duration           : 1,
            durationUnit       : 'day',
            cls                : '',
            name               : 'b',
            manuallyScheduled  : false,
            unscheduled        : false,
            percentDone        : 0,
            effortUnit         : 'hour',
            effortDriven       : false,
            schedulingMode     : 'Normal',
            baselines          : [],
            wbsValue           : '3'
        }
    ],
    resourcesData    : [],
    dependenciesData : [],
    assignmentsData  : []
});
  1. create a function to apply changes
window.run = function() {
    gantt.project.applyProjectChanges({
        tasks : {
            added : [
                {
                    $PhantomId         : '_generatedModelClass_dd9103c2-b2ff-440a-b5f2-9966687b59ca',
                    cls                : '',
                    duration           : 1,
                    durationUnit       : 'day',
                    effortDriven       : false,
                    effortUnit         : 'hour',
                    id                 : 71117,
                    manuallyScheduled  : false,
                    name               : 'New task 3',
                    orderedParentIndex : 2,
                    percentDone        : 0,
                    schedulingMode     : 'Normal',
                    unscheduled        : false,
                    wbsValue           : '3'
                }
            ],
            updated : [
                {
                    id                 : '71115',
                    orderedParentIndex : 3,
                    wbsValue           : '4'
                }
            ]
        }
    });
};
  1. load demo, type run() in console

You'll see new task WBS is 4, it should be 3.

@bmblb bmblb added bug Something isn't working OEM OEM customer labels Aug 11, 2023
@bmblb bmblb self-assigned this Aug 11, 2023
@bmblb bmblb added ready for review Issue is fixed, the pull request is being reviewed resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels Aug 11, 2023
@bmblb bmblb added this to the 5.5.1 milestone Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

1 participant