Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Notice: Undefined index: rolename in /vendor/magento/module-user/Controller/Adminhtml/User/Role/SaveRole.php on line 213
- protected function saveDataToSessionAndRedirect($role, $data, $resultRedirect)
- {
- $this->_getSession()->setData(self::ROLE_EDIT_FORM_DATA_SESSION_KEY, ['rolename' => $data['rolename']]);
- $this->_getSession()->setData(self::IN_ROLE_USER_FORM_DATA_SESSION_KEY, $data['in_role_user']);
- $this->_getSession()->setData(self::IN_ROLE_OLD_USER_FORM_DATA_SESSION_KEY, $data['in_role_user_old']);
- if ($data['all']) {
- $this->_getSession()->setData(self::RESOURCE_ALL_FORM_DATA_SESSION_KEY, $data['all']);
- } else {
- $resource = isset($data['resource']) ? $data['resource'] : [];
- $this->_getSession()->setData(self::RESOURCE_FORM_DATA_SESSION_KEY, $resource);
- }
- $arguments = $role->getId() ? ['rid' => $role->getId()] : [];
- return $resultRedirect->setPath('*/*/editrole', $arguments);
- }
- rm -rf pub/static/*;
- php bin/magento setup:upgrade;
- php bin/magento setup:di:compile
- php bin/magento setup:static-content:deploy;
- php bin/magento setup:static-content:deploy es_ES;
Add Comment
Please, Sign In to add comment