example-modules
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.
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.

Steps to Reproduce
Steps to reproduce the behavior:
- Install demodoctrine module v1.0.0
- Make sure your shop has 2 languages enabled in BO
- Click on 'configure' to go on administration page of demodoctrine module
- Click 'Add a new quote'
- Fill in "author name"
- Fill in "Content" for one language, leave the other language empty for "Content"
- Submit, see Type Error
Screenshots

Additional information
- PrestaShop version: 1.7.8.x
- PHP version: 7.4
ping @jolelievre FYI (it does not mean it's up to you to fix it, just wanted you to know)