From 299a8e9e9f94fc621a63808eb3f2952bed1960e9 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Thu, 14 Nov 2013 14:13:28 +0100 Subject: [PATCH] // Update attributes group title --- .../admin/AdminAttributesGroupsController.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/controllers/admin/AdminAttributesGroupsController.php b/controllers/admin/AdminAttributesGroupsController.php index bf13c1040..c49b21642 100644 --- a/controllers/admin/AdminAttributesGroupsController.php +++ b/controllers/admin/AdminAttributesGroupsController.php @@ -553,7 +553,17 @@ class AdminAttributesGroupsControllerCore extends AdminController case 'editAttributes': if ($this->id_attribute) - $bread_extended[] = $this->l('Edit Value'); + { + if (($id = Tools::getValue('id_attribute_group'))) + { + if (Validate::isLoadedObject($obj = new AttributeGroup((int)$id))) + $bread_extended[] = ''.$obj->name[$this->context->employee->id_lang].''; + if (Validate::isLoadedObject($obj = new Attribute((int)$this->id_attribute))) + $bread_extended[] = sprintf($this->l('Edit: %s'), $obj->name[$this->context->employee->id_lang]); + } + else + $bread_extended[] = $this->l('Edit Value'); + } else $bread_extended[] = $this->l('Add New Values'); break;