Skip to content

Terms and Conditions missing StoreView, can't edit #6356

Closed
@jwittorf

Description

@jwittorf

I'm having troubles editing the terms and conditions on my production server. The development version is fine, I guess something went wrong during deployment/install/update.

The column "StoreViews" is missing in the list view of conditions on the production server. Additionally when adding a new condition I don't see the multi-select field to set a StoreView.
The database allthough has the same columns and entries.

It's the same issue as: #6062

I'm getting:

main.CRITICAL: Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/domain.com/httpdocs/vendor/magento/framework/Data/Form/Element/AbstractElement.php on line 286 [] []

I've checked the ouput and added this before the return:

if(is_array($string)){
    var_dump($string); die();
}

I actually got back an array(1) { [0]=> string(1) "0" }

There seem to be no problems with the frontend but I and/or my client can't edit the agreements in the backend.

Preconditions

  1. Magento 2.1.0 (both)
  2. PHP 5.6.24 (production) PHP 5.6.23 (development)
  3. MySQL Server 5.6.32 (production) MySQL Server 5.6.28 (development)
  4. No sample data installed

Steps to reproduce

  1. In the Backend go to "Stores"
  2. "Settings"
  3. "Terms and Conditions"
  4. View the existing conditions OR
  5. "Add New Condition" OR
  6. Edit an existing condition

Expected result

  1. When viewing the list you should see the column "StoreView"
  2. When adding a new condition you should see a multi-select field "StoreView"
  3. When editing an existing condition you should see all the details including "StoreView"

1 List view
screenshot_1

2 Add new condition
screenshot_2

3 Edit existing condition
screenshot_3

Actual result

  1. Missing column "StoreView" in list
  2. Missing multi-select field "StoreView"
  3. Won't load any details of the condition

1 List view
screenshot_1

2 Add new condition
screenshot_2

3 Edit existing condition
screenshot_3

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions