for user new interface, member role is working.

This commit is contained in:
Matthew K. Fu JuYuan authored and chris committed 2012-10-26 11:27:37 +08:00
1 parent b301f6522a
commit bd0d975014
15 files changed
+312 -90

No files matched your search

+3 -2
View File
@@ -14,6 +14,7 @@ class AttributeValue
# NO_MULTI_TAG = ["select","date","radio_button","checkbox","date_durnation"]
def check_key
binding.pry if attribute_field.nil?
self.key = attribute_field.key
end
@@ -30,7 +31,7 @@ class AttributeValue
when "text_field"
self.attribute_field.locale ? self[locale] : self[:value]
when "select"
markup_values = eval(self.attribute_field.markup_value)
markup_values = self.attribute_field.self_defined_markup_options? ? self.attribute_field.markup_value : eval(self.attribute_field.markup_value)
markup_values[self[:value]][locale.to_s] rescue 'NoData'
when "text_area"
self.attribute_field.locale ? self[locale] : self[:value]
@@ -62,7 +63,7 @@ class AttributeValue
if self.attribute_field.markup == "select"
self[:value]
else
self[:value].keys
self[:value].keys rescue self[:value]
end
end
end