Skip to content

get/set() doesn't update settings if resource name has '-' #4405

@omar-o22

Description

@omar-o22

Describe the bug

When trying to change a setting of a resource whose name contains a dash (-) doesn’t update the existing setting. Instead, it creates a new one like this resourceName.setting
[edited]: get() has the same bug
returns the value of resourceName.setting instead of setting

Steps to reproduce

  1. Create a resource with a dash in its name, e.g. my-resource
  2. Define a setting in its meta.xml:
<setting name="*testSetting" value="1" />
  1. Run:
set("*my-resource.testSetting", "2")

Version

Client: v1.6-release-23324 (Windows 10 64-bit)
Server: v1.6-release-23324 (Windows 10 64-bit)

Additional context

/

Relevant log output

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions