Page 1 of 1

Sku name - bug on admin ?

Posted: Wed Jan 23, 2013 4:39 am
by denis
Hi,

Why all skus names are all null on admin except the default sku ?

1/ Default sku (http://i.imgur.com/zPFCHrb.png):

Image

2/ Skus (http://i.imgur.com/fksF1BW.png)

Image

The method getName does not seem to be properly called on admin:

Code: Select all

public String getName() {
      if (name == null && hasDefaultSku()) {
          return lookupDefaultSku().getName();
      }
      return name;
}


Logically the name of the default sku should be displayed

I have another object which has a Sku and is not possible to display the name of this sku.

Please let me know if i have to create a JIRA.

Thanks

Re: Sku name - bug on admin ?

Posted: Wed Jan 23, 2013 10:07 am
by phillipuniverse
The admin currently does not work via getters and setters and instead operations on the fields themselves (with reflection). If you have a getter or setter defined it will never get called.

You could open a Jira for this as a feature request but it is technically working as designed.

Re: Sku name - bug on admin ?

Posted: Wed Jan 23, 2013 10:47 am
by denis
Ok thanks for your answer phillip