// fix problem about guest customer and default group id and the password display in the form (BO)

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11767 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot committed 2011-12-26 14:31:15 +00:00
1 parent 4484464620
commit 232e8c2cc3
3 files changed
+15 -5

No files matched your search

@@ -361,6 +361,15 @@ class AdminCustomersControllerCore extends AdminController
)
);
// if customer is a guest customer, password hasn't to be there
if ($obj->id && ($obj->is_guest && $obj->id_default_group == Configuration::get('PS_GUEST_GROUP')))
{
foreach ($this->fields_form['input'] as $k => $field)
if ($field['type'] == 'password')
array_splice($this->fields_form['input'], $k, 1);
}
if (Shop::isFeatureActive())
{
$this->fields_form['input'][] = array(