File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
app/code/core/Mage/Catalog/Model
Resource/Product/Type/Configurable/Attribute Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class Mage_Catalog_Model_Attribute_Backend_Customlayoutupdate extends Mage_Eav_M
32
32
public function validate ($ object )
33
33
{
34
34
$ attributeName = $ this ->getAttribute ()->getName ();
35
- $ xml = trim ($ object ->getData ($ attributeName ));
35
+ $ xml = trim (( string ) $ object ->getData ($ attributeName ));
36
36
37
37
if (!$ this ->getAttribute ()->getIsRequired () && empty ($ xml )) {
38
38
return true ;
@@ -42,7 +42,7 @@ public function validate($object)
42
42
$ validator = Mage::getModel ('adminhtml/layoutUpdate_validator ' );
43
43
if (!$ validator ->isValid ($ xml )) {
44
44
$ messages = $ validator ->getMessages ();
45
- //Add first message to exception
45
+ // add first message to exception
46
46
$ massage = array_shift ($ messages );
47
47
$ eavExc = new Mage_Eav_Model_Entity_Attribute_Exception ($ massage );
48
48
$ eavExc ->setAttributeCode ($ attributeName );
Original file line number Diff line number Diff line change @@ -230,10 +230,10 @@ protected function _loadPrices()
230
230
$ sortOrder = 1 ;
231
231
foreach ($ this ->_items as $ item ) {
232
232
$ productAttribute = $ item ->getProductAttribute ();
233
- $ productAttributeCode = $ productAttribute ->getAttributeCode ();
234
233
if (!($ productAttribute instanceof Mage_Eav_Model_Entity_Attribute_Abstract)) {
235
234
continue ;
236
235
}
236
+ $ productAttributeCode = $ productAttribute ->getAttributeCode ();
237
237
$ options = $ productAttribute ->getFrontend ()->getSelectOptions ();
238
238
239
239
$ optionsByValue = [];
You can’t perform that action at this time.
0 commit comments