Forum .LRN Q&A: Re: Res: .LRN Planner missing function

Collapse
Posted by Dario Roig on
Hi Alvaro! I have changed the place where the callbacks are implemented and its works well. For example in the package forums:

diff -uBb ../forums/lib/forums/new.tcl~ ../forums/lib/forums/new.tcl
--- ../forums/lib/forums/new.tcl~ 2009-09-01 16:49:38.287608649 +0200
+++ ../forums/lib/forums/new.tcl 2009-09-01 16:49:38.287608649 +0200
@@ -47,7 +47,9 @@
}

## Planner View
- callback -catch -impl "dotlrn" planner::insert_object -block_id $block_id -object_id $forum_id
+ #DRG
+ #callback -catch -impl "dotlrn" planner::insert_object -block_id $block_id -object_id $forum_id
+ callback -catch -impl "planner" planner::insert_object -block_id $block_id -object_id $forum_id
###

ad_returnredirect $return_url
@@ -62,7 +64,9 @@
element set_value forum name $name

## Planner View -> Extend Form
- callback -catch -impl "dotlrn" planner::extend_form -block_id $block_id -form_name "forum"
+ #DRG
+ #callback -catch -impl "dotlrn" planner::extend_form -block_id $block_id -form_name "forum"
+ callback -catch -impl "planner" planner::extend_form -block_id $block_id -form_name "forum"
###
}

Thanks for your response!!!