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

BO - Employees page - an exception is displayed when we try to add an invalid avatar #28985

Closed
2 tasks done
khouloudbelguith opened this issue Jul 6, 2022 · 1 comment
Closed
2 tasks done
Assignees
Labels
1.7.8.6 Affects versions Advanced parameters Component: Which BO section is concerned BO Category: Back Office Bug Type: Bug Employees Label: Which BO under menu is concerned Fixed Resolution: issue closed because fixed Good first issue Community: beginner-friendly issues Image Label: Which BO under menu is concerned PR available Solution: issue is being addressed Regression Type: regression Team Label: Which BO under menu is concerned Trivial Severity: trivial bug > https://build.prestashop.com/news/severity-classification Verified The issue has been reproduced

Comments

@khouloudbelguith
Copy link
Contributor

khouloudbelguith commented Jul 6, 2022

Prerequisites

Describe the bug and add screenshots

Related to #28253, #28484
In the BO > Team > Employees page, an exception is displayed when we add an invalid avatar (SVG, mp4,...)
image

Expected behavior

When user hits "save" an error should be displayed to tell user that only some image files (list to be defined) are accepted as avatar. Trying to submit files such as SVG or MP4 should trigger a form invalidation error.

Error message should be something

Steps to reproduce

  1. Go to BO > Team > Employees page
  2. Add/Edit an employee
  3. Add an invalid avatar (SVG, ...)
  4. Save
  5. See an error

PrestaShop version(s) where the bug happened

1.7.8.6, 8.0.x

PHP version(s) where the bug happened

7.2

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

No response

@khouloudbelguith khouloudbelguith added Bug Type: Bug Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification BO Category: Back Office Needs Specs Status: issue needs to be specified Image Label: Which BO under menu is concerned Team Label: Which BO under menu is concerned Employees Label: Which BO under menu is concerned Regression Type: regression Verified The issue has been reproduced 1.7.8.6 Affects versions labels Jul 6, 2022
@khouloudbelguith khouloudbelguith added the Advanced parameters Component: Which BO section is concerned label Jul 6, 2022
@prestonBot prestonBot added the PR available Solution: issue is being addressed label Sep 5, 2022
@florine2623 florine2623 added the Fixed Resolution: issue closed because fixed label Oct 17, 2022
@prestashop-issue-bot prestashop-issue-bot bot removed the Needs Specs Status: issue needs to be specified label Oct 17, 2022
@florine2623
Copy link
Contributor

Fixed in #29554

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.7.8.6 Affects versions Advanced parameters Component: Which BO section is concerned BO Category: Back Office Bug Type: Bug Employees Label: Which BO under menu is concerned Fixed Resolution: issue closed because fixed Good first issue Community: beginner-friendly issues Image Label: Which BO under menu is concerned PR available Solution: issue is being addressed Regression Type: regression Team Label: Which BO under menu is concerned Trivial Severity: trivial bug > https://build.prestashop.com/news/severity-classification Verified The issue has been reproduced
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants