Skip to content

Commit

Permalink
Show missing increment ID field in preview tool (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
mzeis committed Oct 10, 2017
1 parent 100157c commit dcb8ac8
Showing 1 changed file with 28 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,22 +150,46 @@ protected function _prepareForm()
->addFieldDependence(
$incrementFields['invoice']->getName(),
$templateTypeField->getName(),
'test_sales_order_invoice_email_template'
array(
'sales_email_invoice',
'sales_email_invoice_comment',
'sales_email_invoice_comment_guest',
'sales_email_invoice_guest',
'test_sales_order_invoice_email_template',
)
)
->addFieldDependence(
$incrementFields['creditmemo']->getName(),
$templateTypeField->getName(),
'test_sales_order_creditmemo_email_template'
array(
'sales_email_creditmemo',
'sales_email_creditmemo_comment',
'sales_email_creditmemo_comment_guest',
'sales_email_creditmemo_guest',
'test_sales_order_creditmemo_email_template',
)
)
->addFieldDependence(
$incrementFields['order']->getName(),
$templateTypeField->getName(),
'test_sales_order_email_template'
array(
'sales_email_order',
'sales_email_order_comment',
'sales_email_order_comment_guest',
'sales_email_order_guest',
'test_sales_order_email_template',
)
)
->addFieldDependence(
$incrementFields['shipment']->getName(),
$templateTypeField->getName(),
'test_sales_order_shipment_email_template'
array(
'sales_email_order_shipment',
'sales_email_order_shipment_comment',
'sales_email_order_shipment_comment_guest',
'sales_email_order_shipment_guest',
'test_sales_order_shipment_email_template'
)
);

if (Mage::getEdition() === Mage::EDITION_ENTERPRISE) {
Expand Down

0 comments on commit dcb8ac8

Please sign in to comment.