donb
committed
on 05 Feb 02

Fixed the compare routine for real this time. I'd spaced earlier and forgot
that the "sql_date" property doesn't return a formatted SQL da… Show more

Fixed the compare routine for real this time.  I'd spaced earlier and forgot

that the "sql_date" property doesn't return a formatted SQL data but rather

a "to_char" function call ...

Show less

openacs-4/.../resource-list/www/add-edit.tcl (+2 -2)
129 129     set values ""
130 130 }
131 131
132 132
133 133 foreach type [db_list_of_lists get_resource_types { }] {
134 134
135 135     set category_type_id [lindex $type 0]
136 136     set type_short_name  [lindex $type 1]
137 137    
138 138     ns_log Notice "category_type_id $category_type_id"
139 139    
140 140     set ae_def "
141 141         {categories.$category_type_id:text(checkbox),multiple
142 142              {label \"Select: [set type_short_name]\"}
143 143              {options {[db_list_of_lists get_category_items { }]} }
144 144              {values [list [set values]]}
145 145          } "
146 146
147 147     ns_log Notice "ae_def: $ae_def"
148 148
149       ad_form -extend -name add_edit -select_query_name do_nothing -form $ae_def
  149     ad_form -extend -name add_edit -form $ae_def
150 150
151 151 }