Skip to content

Unable to create new TrackingOptions #871

Open
@willpower232

Description

@willpower232

I would like to create a TrackingOption as part of preparing a Demo Company for development.

Unfortunately the following code does nothing

$option = new TrackingOption($xeroConnection);
$option->setName($email);
$trackingCategory->addOption($option);
$trackingCategory->save();

Having inspected the savePropertiesDirectly method, I extracted the following XML body

<s><s><Name>[email protected]</Name></s></s>

I can see that in #801 @philipdarlo set TrackingOption::getRootNodeName to an empty string for some reason.

I can obviously PR to restore the word "Option" but was there any particular reason for blanking the return?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions