Prestashop: Disable possibility of enabling "Send email to customer" from order statuses list if no template is selected

Created on 10 Jan 2019  路  5Comments  路  Source: PrestaShop/PrestaShop

Describe the bug
If you enable option Send email to customer from the grid and there is not any template choosen, when you change an order to this status it returns error Error: invalid e-mail template

To Reproduce
Steps to reproduce the behavior:

  1. Create a new order status
  2. Go to order statuses list
  3. Enable Send email to customer from the grid clicking on the cross icon
  4. Change an order to this status

If you enable this option in the order status edit page it doesn't happen because template dropdown is required.

Screenshots
If applicable, add screenshots or screenrecords to help explain your problem.
image

Additionnal information
PrestaShop version: 1.7.5.0

1.7.4.4 1.7.5.0 1.7.6.0 BO Bug Fixed Minor Order statuses

All 5 comments

Hi @idnovate,

Thanks for your report.
We need to enable the mode debug to reproduce the issue.
I manage to reproduce the issue with PS1.7.5.0 & PS1.7.4.4.
I attached a video record.
https://drive.google.com/file/d/1qLYvzA2UFtxb3qnExr3_Um4LGf1eihay/view
We will we see how to fix it.
Thanks!

Sorry you are right, I didn't notice it. Error is displayed from this function:

public static function dieOrLog($msg, $die = true)
{
    if ($die || (defined('_PS_MODE_DEV_') && _PS_MODE_DEV_)) {
        die($msg);
    }
    return PrestaShopLogger::addLog($msg);
}

We could delete the column "send email to customer" from the list

Or disable callback so this column is not clickable.

Was this page helpful?
0 / 5 - 0 ratings