File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,12 @@ public function isCustomerEditAdminPage()
4343 * Check page type
4444 * @return bool
4545 */
46- public function isOrderCreationAdminPage ()
46+ public function isSalesOrderFormAdminPage ()
4747 {
4848 return $ this ->_request ->getFullActionName () === 'sales_order_create_index '
49- || $ this ->_request ->getFullActionName () === 'sales_order_create_loadBlock ' ;
49+ || $ this ->_request ->getFullActionName () === 'sales_order_create_loadBlock '
50+ || $ this ->_request ->getFullActionName () === 'sales_order_edit_index '
51+ || $ this ->_request ->getFullActionName () === 'sales_order_edit_loadBlock ' ;
5052 }
5153
5254 /**
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public function __construct(
3535 */
3636 public function afterGetAttributes (Form $ subject , $ result )
3737 {
38- if ($ this ->_dataHelper ->isOrderCreationAdminPage () && $ this ->_dataHelper ->isEnabled () && is_array ($ result )) {
38+ if ($ this ->_dataHelper ->isSalesOrderFormAdminPage () && $ this ->_dataHelper ->isEnabled () && is_array ($ result )) {
3939 foreach ($ this ->_dataHelper ->getCustomerAddressAttributeArray () as $ field ) {
4040 if (array_key_exists ($ field , $ result )) {
4141 unset($ result [$ field ]);
You can’t perform that action at this time.
0 commit comments