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

editsubscriber.tt2 does not display custom user attributes when all are undefined #1939

Open
Nalisman385 opened this issue Feb 24, 2025 · 0 comments
Labels

Comments

@Nalisman385
Copy link

When a list is configured to have custom user attributes, but users are added only by list owners or via data sources (and the user has not yet logged in), their custom attributes are never populated. They are then not available for configuration by the owner/moderator on the editsubscriber screen.

Version

6.2.72

Installation method

rpm

Expected behavior

The attribute should be available for edit by owner regardless of how the user is added to the list.

Actual behavior

The custom user attributes are not listed either as read only or editable.

Steps to reproduce

Add a custom user attribute to a list.
Add a subscriber to the list (owner).
Browse the subscribers, click on the new subscriber.
No custom attributes are listed (the custom_attributes for the user is as yet undefined).

Additional information

In editsubscriber.tt2, I resolve in my test environment as follows:

Change:

    [% IF current_subscriber.custom_attribute %]
        [% SET subscriber = current_subscriber ;
        PROCESS edit_attributes.tt2 %]
    [% END %]

to:

    [% IF current_subscriber.custom_attribute OR listconf.custom_attribute %]
        [% SET subscriber = current_subscriber ;
        PROCESS edit_attributes.tt2 %]
    [% END %]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant