@@ -180,7 +180,8 @@ public function showNewContent($newContent, Firegento_AdminLogger_Model_History
180180 }
181181 foreach ($ showContent as $ key => $ value ) {
182182 if (array_key_exists ($ key , $ newContent )) {
183- $ cell .= $ this ->formatCellContent ($ key , $ newContent [$ key ]);
183+ $ attributeName = Mage::helper ('firegento_adminlogger ' )->getAttributeNameByTypeAndCode ($ row ->getObjectType (), $ key );
184+ $ cell .= $ this ->formatCellContent ($ attributeName , $ newContent [$ key ]);
184185 }
185186 }
186187 }
@@ -189,14 +190,20 @@ public function showNewContent($newContent, Firegento_AdminLogger_Model_History
189190 }
190191
191192
192- public function showOldContent ($ oldContent ) {
193+ /**
194+ * @param string $oldContent
195+ * @param Firegento_AdminLogger_Model_History $row
196+ * @return string
197+ */
198+ public function showOldContent ($ oldContent , Firegento_AdminLogger_Model_History $ row ) {
193199 $ cell = '' ;
194200 $ oldContent = $ this ->decodeContent ($ oldContent );
195201
196202 if (is_array ($ oldContent )) {
197203 if (count ($ oldContent ) > 0 ) {
198204 foreach ($ oldContent as $ key => $ value ) {
199- $ cell .= $ this ->formatCellContent ($ key , $ value );
205+ $ attributeName = Mage::helper ('firegento_adminlogger ' )->getAttributeNameByTypeAndCode ($ row ->getObjectType (), $ key );
206+ $ cell .= $ this ->formatCellContent ($ attributeName , $ value );
200207 }
201208 } else {
202209 return $ this ->__ ('not available ' );
0 commit comments