Forum OpenACS Q&A: bboard: can't view the readers

Collapse
Posted by loris bason on
Hi, I think I have found a bug in bboard. When, from the admin page, I click on the "view the readers" button the following message is shown
Problem with Your Input

to www.sinapsi.com 

We had a problem processing your entry: 

     The entry for N Postings, "n_postings" is not an integer 

Please back up using your browser, correct it, and resubmit your 
entry. 

Thank you. 
I am sure, I put an integer in the field (the default is 1) thanks
Collapse
Posted by Robert Ezman on
I was in a openACS bug fixing mood.  So here's my fix:

at the top or bboard/admin-community-view.tcl in a page validation section you'll find the line:

set n_positions [validate_integer "N Postings" n_postings]

should be

set n_positions [validate_integer "N Postings" $n_postings]

(note the dollar sign)

but that's not all!...:) because once you get past that there's another...

replace all instances of $QQstart_date with $start_date

Then it works.

Collapse
Posted by loris bason on
I have to replace $QQend_state with $end_state too and it works

thank you Robert

Collapse
Posted by Don Baccus on
OK, I've committed these changes, I think.  Could one of view update
from CVS and make sure that I didn't screw anything up?

Thanks for the fixes.  I also grep'd for "validate" calls that should
be "validate_integer" (or something else) and found another lingering
one in survey simple.  That's been changed and committed, too.