more bug fixes

This commit is contained in:
JT Smith 2006-01-13 19:32:26 +00:00
parent 3c0c47014c
commit a6e5450b64
12 changed files with 55 additions and 59 deletions

View file

@ -759,11 +759,11 @@ sub www_rate {
if ($first) {
$first=0;
} else {
if ($lastRating != $self->session->form->process("$category")) {
if ($lastRating != $self->session->form->process($category)) {
$sameRating = 0;
}
}
$lastRating = $self->session->form->process("$category");
$lastRating = $self->session->form->process($category);
}
return $self->www_viewDetail("",1) if ($hasRated || $sameRating); # Throw out ratings that are all the same number, or if the user rates twice.
$self->setRatings($self->session->form->process("listingId"),$session{form});
@ -783,14 +783,13 @@ sub www_search {
}
my $sth = $self->session->db->read("select name,fieldType from Matrix_field");
while (my ($name,$fieldType) = $sth->array) {
next unless ($self->session->form->process("$name"));
next unless ($self->session->form->process($name));
push(@list,0);
my $where;
if ($fieldType ne "goodBad") {
$where = "("
."a.value like ".$self->session->db->quote("%".$self->session->form->process("$name")."%")
."a.value like ".$self->session->db->quote("%".$self->session->form->process($name)."%")
." or a.value='Any'"
#." or a.value<".$self->session->db->quote($self->session->form->process("$name"))
." or a.value='Free'"
.")";
} else {
@ -842,13 +841,13 @@ sub www_search {
if ($data->{fieldType} ne "goodBad") {
$data->{form} = WebGUI::Form::text({
name=>$data->{name},
value=>$self->session->form->process("$data->{name}")
value=>$self->session->form->process($data->{name})
});
} else {
$data->{form} = WebGUI::Form::checkbox({
name=>$data->{name},
value=>"1",
checked=>$self->session->form->process("$data->{name}")
checked=>$self->session->form->process($data->{name})
});
}
push(@loop,$data);