where attribute_id = :attribute_id and object_type_id = :list_id
"
if {$required_p ==""}{
if {$required_p eq""}{
# Determine if an attribute should be required in this list by the default value for required.
set required_p [db_string required "select case when aa.min_n_values = 0 then 'f' else 't' end as required_p from acs_attributes aa, im_dynfield_attributes ida where ida.acs_attribute_id = aa.attribute_id and ida.attribute_id = :attribute_id" -default "f"]
}
...
...
@@ -457,7 +457,7 @@ namespace eval attribute {
set column_name $acs_attribute_name
}
if {[empty_string_p $table_name] || [empty_string_p $column_name]}{
if {$table_name eq "" || $column_name eq ""}{
# We have to have both a non-empty table name and column name
error "We do not have enough information to automatically remove this\
attribute. Namely, we are missing either the table name or the column name"
# if { [string equal $storage_type_id [im_dynfield_storage_type_id_multimap]] }{
# if {$storage_type_id eq [im_dynfield_storage_type_id_multimap]}{
# append form_element { {options { {"Demo Example One" 1}{"Demo Example Two" 2}{"Demo Example Three" 3}{"Demo Example Four" 4}{"Demo Example Five" 5}{"Demo Example Six" 6}}}}