Skip to content

Accessing setting via FormIt hook always yields empty value #186

@sonicpunk

Description

@sonicpunk

Summary

Trying to access a setting field using $modx->getOption() always returns an empty string.

Step to reproduce

Inside of a hook snippet try to call up a ClientConfig setting

Observed behavior

It returns empty

Expected behavior

It should return the saved value

Environment

ClientConfig version 2.3.0-pl, FormIt version 4.2.5-pl, MODX version 2.7.2-advanced, Operating System Apache, MySQL 5.6 version, PHP version 7.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions