Skip to content

}bedrock.cube.dimension.add not deleting control object temp objects #422

@tomnixon-cw

Description

@tomnixon-cw

Describe the bug
The caller for }bedrock.cube.dimension.add has an optional parameter (pCtrlObj) which is either 1 or 0 to allow it to work on control objects. The clone cube is a clone of a control cube and is not being deleted even if pTemp is set to 1 because the pCtrlObj flag is not being inherited by the call to }bedrock.cube.delete later on in the process (it is set to zero instead of the value of pCtrlObj).

Suggest changing the 0 to inherit pCtrlObj.

Cheers.

To Reproduce
Steps to reproduce the behavior:

  1. Create a control cube
  2. Add a dimension to the control cube using }bedrock.cube.dimension.add ensuring pTemp is set to 1 (to delete clone cube) and pCtrolObj is set to 1 (to enable the cube to work on control objects).
  3. Note that the clone objects have not been deleted. Process will have broken at that point.

Expected behavior
Clone objects deleted as per setting pTemp to 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions