fixed: Thingy: Setting the size of a field has no effect

This commit is contained in:
Yung Han Khoe 2008-08-08 11:27:47 +00:00
parent 9f69e54e77
commit 96b7047d22
3 changed files with 15 additions and 1 deletions

View file

@ -1,6 +1,7 @@
7.5.20 7.5.20
- fixed: The indent loop of the Navigation wobject has an incorrect number of - fixed: The indent loop of the Navigation wobject has an incorrect number of
iterations in some cases. (Martin Kamerbeek / Oqapi) iterations in some cases. (Martin Kamerbeek / Oqapi)
- fixed: Thingy: Setting the size of a field has no effect
7.5.19 7.5.19
- fixed: paginator doesn't show correct number of page links with a limit applied - fixed: paginator doesn't show correct number of page links with a limit applied

View file

@ -29,6 +29,7 @@ my $quiet; # this line required
my $session = start(); # this line required my $session = start(); # this line required
# upgrade functions go here # upgrade functions go here
addThingyFieldsSizeColumn( $session );
finish($session); # this line required finish($session); # this line required
@ -42,6 +43,17 @@ finish($session); # this line required
# print "DONE!\n" unless $quiet; # print "DONE!\n" unless $quiet;
#} #}
#----------------------------------------------------------------------------
# Add Thingy_fields size column
sub addThingyFieldsSizeColumn {
my $session = shift;
print "\tAdding Thingy_fields size column... " unless $quiet;
$session->db->write(
"alter table Thingy_fields add size int(11)"
);
print "Done!\n" unless $quiet;
}
# -------------- DO NOT EDIT BELOW THIS LINE -------------------------------- # -------------- DO NOT EDIT BELOW THIS LINE --------------------------------

View file

@ -1327,7 +1327,7 @@ sub www_editThing {
$formElement = $self->getFormElement($field); $formElement = $self->getFormElement($field);
} }
if ($field->{subtext}){ if ($field->{subtext}){
$formElement .= '<span class="formSubtext">'.$field->{subtext}.'</span>'; $formElement .= '<br /><span class="formSubtext">'.$field->{subtext}.'</span>';
} }
$fieldsHTML .= "<li class='list1' id='$field->{fieldId}'>" $fieldsHTML .= "<li class='list1' id='$field->{fieldId}'>"
@ -1690,6 +1690,7 @@ sub www_editFieldSave {
possibleValues=>$self->session->form->process("possibleValues"), possibleValues=>$self->session->form->process("possibleValues"),
subtext=>$self->session->form->process("subtext"), subtext=>$self->session->form->process("subtext"),
status=>$self->session->form->process("status"), status=>$self->session->form->process("status"),
size=>$self->session->form->process("size"),
width=>$self->session->form->process("width"), width=>$self->session->form->process("width"),
height=>$self->session->form->process("height"), height=>$self->session->form->process("height"),
vertical=>$self->session->form->process("vertical"), vertical=>$self->session->form->process("vertical"),