Guest User

Untitled

a guest
Jul 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. Notice: Undefined index: rolename in /vendor/magento/module-user/Controller/Adminhtml/User/Role/SaveRole.php on line 213
  2.  
  3. protected function saveDataToSessionAndRedirect($role, $data, $resultRedirect)
  4. {
  5. $this->_getSession()->setData(self::ROLE_EDIT_FORM_DATA_SESSION_KEY, ['rolename' => $data['rolename']]);
  6. $this->_getSession()->setData(self::IN_ROLE_USER_FORM_DATA_SESSION_KEY, $data['in_role_user']);
  7. $this->_getSession()->setData(self::IN_ROLE_OLD_USER_FORM_DATA_SESSION_KEY, $data['in_role_user_old']);
  8. if ($data['all']) {
  9. $this->_getSession()->setData(self::RESOURCE_ALL_FORM_DATA_SESSION_KEY, $data['all']);
  10. } else {
  11. $resource = isset($data['resource']) ? $data['resource'] : [];
  12. $this->_getSession()->setData(self::RESOURCE_FORM_DATA_SESSION_KEY, $resource);
  13. }
  14. $arguments = $role->getId() ? ['rid' => $role->getId()] : [];
  15. return $resultRedirect->setPath('*/*/editrole', $arguments);
  16. }
  17.  
  18. rm -rf pub/static/*;
  19. php bin/magento setup:upgrade;
  20. php bin/magento setup:di:compile
  21. php bin/magento setup:static-content:deploy;
  22. php bin/magento setup:static-content:deploy es_ES;
Add Comment
Please, Sign In to add comment