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

Can't create an employee associated to another shop with email already used in database #29458

Open
2 tasks done
Tracked by #9723
PrestaEdit opened this issue Aug 27, 2022 · 2 comments
Open
2 tasks done
Tracked by #9723
Labels
1.7.7.8 Affects versions BO Category: Back Office Bug Type: Bug Employees Label: Which BO under menu is concerned Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification Multistore Label: Which BO under menu is concerned Needs Specs Status: issue needs to be specified Team Label: Which BO under menu is concerned Verified The issue has been reproduced

Comments

@PrestaEdit
Copy link
Contributor

Prerequisites

Describe the bug and add screenshots

Once you enable the multishop and having two shops, you are able to create somes employees with shop associated.

If you try to use the same email address, it will fail because it's already exist, even if it's not associated to the same shop.

Expected behavior

Be able to use the same address email within each shop for an employee account.

As you can use the virtual uri to reach the Back Office of the specific shop, you could be able to have an employee with the same email address but with a different profile and/or ajusted for this shop.

Steps to reproduce

  1. Enable multishop
  2. Add another shop
  3. Add an employee (don't use the SuperAdmin profile, it's a special one)
  4. Associate only one shop
  5. Change your shop context to the next shop
  6. Add an employee (again, don't use SuperAdmin profile) with the same email and associate it your other shop to it
  7. See the result error

PrestaShop version(s) where the bug happened

1.7.8.7, 8.0.0

PHP version(s) where the bug happened

8.0.21

If your bug is related to a module, specify its name and its version

No response

@PrestaEdit PrestaEdit added Bug Type: Bug New New issue not yet processed by QA labels Aug 27, 2022
@sLorenzini
Copy link
Contributor

Hello @PrestaEdit,

I reproduce the issue with PrestaShop version 1.7.7.8, 1.7.8.7 & 8.0.0.

1.7.7.8:
Capture d’écran 2022-08-29 à 12 03 21

Screenrecord of 1.7.8.7:

Add.new.PS.1787.mp4

8.0.0:

Capture d’écran 2022-08-29 à 12 10 06

I'll add this to the backlog so it can be fixed.

Please be aware that some issues might take a very long time to be resolved.

We’re waiting for your PR 🚀

Thank you

@sLorenzini sLorenzini added 8.0.x Branch BO Category: Back Office Needs Specs Status: issue needs to be specified Team Label: Which BO under menu is concerned Employees Label: Which BO under menu is concerned Verified The issue has been reproduced Multistore Label: Which BO under menu is concerned Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification and removed New New issue not yet processed by QA labels Aug 29, 2022
@thomasDelaporte
Copy link

Hello,

I don't know if this is really a bug? Is there any evidence that it worked like this in previous versions? It looks more like an evolution.

If we take the request, we should check at the same time that the e-mail address exists in the context of the associated stores. It may seem strange for administrator to create employee ?

@prestashop-issue-bot prestashop-issue-bot bot removed the Needs Specs Status: issue needs to be specified label Nov 7, 2022
@hibatallahAouadni hibatallahAouadni added 1.7.7.8 Affects versions and removed 8.0.x Branch labels Nov 29, 2022
@hibatallahAouadni hibatallahAouadni added the Needs Specs Status: issue needs to be specified label Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.7.7.8 Affects versions BO Category: Back Office Bug Type: Bug Employees Label: Which BO under menu is concerned Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification Multistore Label: Which BO under menu is concerned Needs Specs Status: issue needs to be specified Team Label: Which BO under menu is concerned Verified The issue has been reproduced
Projects
None yet
Development

No branches or pull requests

4 participants