Opened 14 years ago

Closed 13 years ago

Last modified 12 years ago

#5277 closed defect (wontfix)

ItemFileReadStore don't accept empty arrays as attribute values

Reported by: guest Owned by: Jared Jurkiewicz
Priority: high Milestone: 1.2
Component: Data Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Jared Jurkiewicz)


Data source "ItemFileReadStore?" hasAttribute responds false if an attribute exists but its value is an empty array. The behavior seems different in the other data sources.


Open Click on the button


A panel that displays "false"


A panel that displays "true", as the "children" attribute is indeed defined in the data source

Change History (6)

comment:1 Changed 14 years ago by bill

Component: GeneralDojoX Data
Owner: changed from anonymous to Jared Jurkiewicz

comment:2 Changed 14 years ago by bill

Component: DojoX DataData

Oops, I guess ItemFileReadStore? is in core. My mistake.

comment:3 Changed 14 years ago by guest

Btw, this comes from the hasAttribute() function in

Don't know what the proper fix should be, thought.

comment:4 Changed 14 years ago by Jared Jurkiewicz

I don't think this is a bug. There is no value for that attribute, so how can it have that attribute? Calling getValue() on it would also return undefined/null.

I'll look a bit further on it, but I'm not sure this is actually a bug.

comment:5 Changed 14 years ago by dylan

Milestone: 1.2

comment:6 Changed 13 years ago by Jared Jurkiewicz

Description: modified (diff)
Resolution: wontfix
Status: newclosed

This is expected behavior of IFRS. Setting a value to an empty array is the same as not having that attribute. It's documented in the code to work that way.

Note: See TracTickets for help on using tickets.