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

Error: "subsTableData" does not exist when CP user edits user without Subscriptions permission #1252

Closed
moldedjelly opened this issue Jan 30, 2020 · 1 comment
Assignees

Comments

@moldedjelly
Copy link

Description

I have an admin user without [Commerce > Subscriptions] permission and they tried to go into a User account and it gave the error:
Variable "subsTableData" does not exist
in "...commerce/src/templates/customers/_includes/_customerTables.html"
offending line: 220 -
tableData: {{ subsTableData|json_encode|raw }}

Additional info

  • Craft version: 3.4.1
  • Commerce version: 3.0.3
  • PHP version: 7.2.27
  • Database driver & version: MySQL 8.0.17
  • Plugins & versions:
@nfourtythree
Copy link
Contributor

Hi @moldedjelly

Thanks for bringing this to our attention. We have pushed up a fix for the issue and it will be included in the next release.

If you would like to get this update early, you can do that by updating your commerce requirement in your composer.json as outlined below followed by running composer update.

"require": {
  "craftcms/commerce": "dev-develop#5f186f894b28b5a827ddbfe23b6951f08643a856 as 3.0.3",
  "...": "..."
}

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants