Forum OpenACS Development: Little bug in etp when adding a new subtopic

Posted by Tilmann Singer on

I just installed edit-this-page-1.01.apm on a fresh openacs4 system (cvs updated today). I mounted an instance of edit-this-page, visited that url, clicked "create new subtopic", filled the two fields and get the following error after submitting:

Request Error
Query did not return any rows.
    while executing
"db_1row get_application_parameter_id """
    invoked from within
"if { $confirmed == "t" } {
    if { [empty_string_p $subtopic_name] ||
         [regexp {[^a-zA-Z0-9-_]} $subtopic_name] } { ad_return_complaint 1 "..."
    ("uplevel" body line 21)
    invoked from within
"uplevel { ad_page_contract {
    @author Luke Pond (
    @creation-date 2001-07-06     Presents a simple form for creatin..."
    (procedure "code::tcl::/web/lari/packages/edit-this-page/www/etp-subtopi..." line 2)
    invoked from within "code::tcl::$__adp_stub"
    invoked from within
"if { [file exists $__adp_stub.tcl] } {       # ensure that data source preparation procedure exists and is up-to-date
      adp_init tcl $__adp_stub
..." [...]

That's because there are two places where it still says editthispage instead of edit-this-page: www/etp-subtopic-create.xql and tcl/etp-procs.xql. After correcting those two files it seems to work fine.