Index: openacs-4/packages/imsld/tcl/imsld-parse-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/tcl/imsld-parse-procs.tcl,v diff -u -r1.11 -r1.12 --- openacs-4/packages/imsld/tcl/imsld-parse-procs.tcl 3 Nov 2005 17:50:08 -0000 1.11 +++ openacs-4/packages/imsld/tcl/imsld-parse-procs.tcl 7 Nov 2005 17:34:18 -0000 1.12 @@ -252,6 +252,7 @@ } } elseif { $greather_than_p } { if { [llength $tree] < $multiplicity } { + set tree_length [llength $tree] ad_return_error "[_ imsld.Error_parsing_file]" "[_ imsld.lt_There_cant_be_less_th]" ad_script_abort } @@ -1863,23 +1864,26 @@ # If not, return the error set support_activity_ref [string tolower [imsld::parse::get_attribute -node $node_ref -attr_name ref]] if { ![db_0or1row get_support_activity_id { - select item_id as activity_id + select item_id as activity_id, + activity_id as support_activity_id from imsld_support_activitiesi where identifier = :support_activity_ref and content_revision__is_live(activity_id) ='t' and component_id = :component_id }] } { # may be the reference is wrong, search in the support activityes before returning an error if { ![db_0or1row get_support_learning_activity_id { - select item_id as activity_id + select item_id as activity_id, + activity_id as learning_activity_id from imsld_learning_activitiesi where identifier = :support_activity_ref and content_revision__is_live(activity_id) = 't' and component_id = :component_id }] } { # ok, last try: searching in the rest of activity structures... if { [db_0or1row get_struct_id { - select item_id as refrenced_struct_id + select item_id as refrenced_struct_id, + structure_id from imsld_activity_structuresi where identifier = :support_activity_ref and content_revision__is_live(structure_id) = 't' @@ -1890,6 +1894,13 @@ append warnings "