Commit acb3cab1 authored by Frank Bergmann's avatar Frank Bergmann

- REST Interface:

  Fixed issue with im_categories if the user doesn't specify
  any category type
parent ae334f21
......@@ -1259,6 +1259,7 @@ ad_proc -private im_rest_get_im_categories {
set unlimited_sql $sql
append sql [im_rest_object_type_pagination_sql -query_hash_pairs $query_hash_pairs]
set value ""
set result ""
set obj_ctr 0
db_foreach objects $sql {
......@@ -1479,7 +1480,7 @@ ad_proc -private im_rest_post_object_type {
# Return a JSON structure with all fields of the object.
set data_list [list]
foreach key [array names hash_array] {
set value $hash_array($key)
set value $hash_array($key)
lappend data_list "\"$key\": \"[im_quotejson $value]\""
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment