jefflunt / rpglogger

(retired) Build your own strategy guide for any RPG
6 stars 0 forks source link

WorldObject properties in the wrong order? #100

Closed jefflunt closed 12 years ago

jefflunt commented 12 years ago

It seems that the order of the form elements don't match the order of the labels, in all cases.

jefflunt commented 12 years ago

More than that, if you create, say, four new string fields on a section, they don't seem to be getting added to the list of attributes for each of the existing WorldObjects.

jefflunt commented 12 years ago

Corrected both of these issues. Added test coverage to prove it.

jefflunt commented 12 years ago

In some cases, it appears that the order in which the attributes are listed across the top of the column headers in the section detail, is not correct. The order in which they're coming out of the DB may be weird.

jefflunt commented 12 years ago

I think the problem is the difference between the sort order in the SectionProperties, and the fact that the display of WorldObjectProperties don't follow that order. I think the data is going and coming from the database correctly, but the display of it is messed up.

  1. Add a sorting restraint on the columns, AND the display of the data
  2. When Sections are updated (and their resulting SectionProperties) re-do the sort order to make sure it's correct every time.