#68
Constructor for Item Data
-
-
Created on:
Sun, Jul 17 2011 (10 months ago)
-
Reported by:
Pilus
-
Assigned to:
Pilus
-
Milestone:
GHI v.1.99.1
-
Bug detected in Version:
-
-
Technical Difficulty:
Easy
-
Status:
Fixed
-
Priority:
High (2)
-
Component:
Renovated Item Data
-
Permission type:
None
-
Type:
Feature
-
Depends on ticket(s):
#53
-
-
Followers
Pilus (Assigned To) , NasiasDarkstar
No file chosen
You have an empty file field. Please select or remove it.
Associations
| # |
Relation |
Summary |
Status |
Action |
| No tickets |
No associations
Time Expenditure
Loading
The table contains raw item data and the variables should be initialized from it.
E.g. if the constuctor table input is taclled 'itemTable', then the name variable could be initialized with name = itemTable.name.
To make sure that we dont initialize variable we expect to be strings into nil values, some guards should be put on, so it will become.
if itemTable.name then
name = itemTable.name
end
The name variable are earlier initialized as an empty string, so this is only overwrtten if the itemTable got a name value.