example-modules icon indicating copy to clipboard operation
example-modules copied to clipboard

[Demo Doctrine module] Demo doctrine module crashes when using 2 languages in BO and a new quote is created but one language field is not filled in.

Open matks opened this issue 4 years ago • 1 comments

Describe the bug

Demo doctrine module crashes when 2 languages are enabled in BO and a new quote is created but one language field is not filled in.

Expected behavior

Demo doctrine module should not crash when 2 languages are enabled in BO and a new quote is created but one language field is not filled in.

It should either warn user that both language fields must be filled in, or support an empty field for one language.

Capture d’écran 2021-06-14 à 10 20 42

Steps to Reproduce

Steps to reproduce the behavior:

  1. Install demodoctrine module v1.0.0
  2. Make sure your shop has 2 languages enabled in BO
  3. Click on 'configure' to go on administration page of demodoctrine module
  4. Click 'Add a new quote'
  5. Fill in "author name"
  6. Fill in "Content" for one language, leave the other language empty for "Content"
  7. Submit, see Type Error

Screenshots

Capture d’écran 2021-06-14 à 10 20 33

Additional information

  • PrestaShop version: 1.7.8.x
  • PHP version: 7.4

matks avatar Jun 14 '21 08:06 matks

ping @jolelievre FYI (it does not mean it's up to you to fix it, just wanted you to know)

matks avatar Jun 14 '21 08:06 matks