magja/magja — Issue #24: 24 - productAttributeSet not set on products fetched from magento, due to comparing string with integer 
Author: ceefour
Created: 2011-11-02 11:33:18+00:00
State: open

In r303, in ProductRemoteServiceImpl at approx line 220, there is a comparison between a string and an integer, which always will return false.. the solution could be either to add .tostring(), og use the variable "id" instead of "set_id"

if (setList != null) {
for (Map<String, Object> set : setList) {
if (set.get("set_id").equals(set_id.toString())) { //added toString

for (Map.Entry<String, Object> att : set.entrySet())
prdAttSet.set(att.getKey(), att.getValue());

break;
}

}
}

Original link: http://code.google.com/p/magja/issues/detail?id=24