Skip to content

Commit

Permalink
Fix: error in admin customer edit account (#4488)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel authored Jan 16, 2025
1 parent ee9eb76 commit 5024e16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected function _prepareForm()

$renderer = $this->getLayout()->createBlock('adminhtml/store_switcher_form_renderer_fieldset_element');
if ($renderer instanceof Varien_Data_Form_Element_Renderer_Interface) {
$fieldset->setRenderer($renderer);
$field->setRenderer($renderer);
}
} else {
$fieldset->addField('store_id', 'hidden', [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function(v, elem){

$renderer = $this->getLayout()->createBlock('adminhtml/customer_edit_renderer_newpass');
if ($renderer instanceof Varien_Data_Form_Element_Renderer_Interface) {
$fieldset->setRenderer($renderer);
$field->setRenderer($renderer);
}

// Prepare customer confirmation control (only for existing customers)
Expand Down Expand Up @@ -209,7 +209,7 @@ function(v, elem){

$renderer = $this->getLayout()->createBlock('adminhtml/customer_edit_renderer_adminpass');
if ($renderer instanceof Varien_Data_Form_Element_Renderer_Interface) {
$fieldset->setRenderer($renderer);
$field->setRenderer($renderer);
}
}
}
Expand All @@ -233,7 +233,7 @@ function(v, elem){

$renderer = $this->getLayout()->createBlock('adminhtml/customer_edit_renderer_newpass');
if ($renderer instanceof Varien_Data_Form_Element_Renderer_Interface) {
$fieldset->setRenderer($renderer);
$field->setRenderer($renderer);
}

// Prepare send welcome email checkbox
Expand Down

0 comments on commit 5024e16

Please sign in to comment.