Fixed a bug where having poll with no answers would cause the poll wobject to crash.

Fixed a bug where the reset votes option in the poll would become mangled if the anti-caching mechanism was enabled.
This commit is contained in:
JT Smith 2002-08-23 02:11:38 +00:00
parent 9eae4862e0
commit d3446049d3
2 changed files with 7 additions and 5 deletions

View file

@ -134,7 +134,7 @@ sub www_edit {
$output .= $_[0]->SUPER::www_edit($f->printRowsOnly);
if ($_[0]->get("wobjectId") ne "new") {
$output .= '<p>';
$output .= '<a href="'.WebGUI::URL::page('func=resetVotes&wid='.$_[0]->get("wobjectId").'">')
$output .= '<a href="'.WebGUI::URL::page('func=resetVotes&wid='.$_[0]->get("wobjectId")).'">'
.WebGUI::International::get(10,$namespace).'</a>';
}
return $output;