fixed: Thingy: Subtext disappears when editing a field

This commit is contained in:
Yung Han Khoe 2008-08-07 11:52:30 +00:00
parent f3b7d1bb43
commit 399fe6fbe3
2 changed files with 6 additions and 5 deletions

View file

@ -33,6 +33,7 @@
- fixed: viewing badges in IE 6/7
- fixed: Shop/Transaction was not updating shopCreditDeduction column. Added that to the update and now users correctly have purchases deducted from their instore credit.
- fixed: Hover Help outdated: automatically request commit
- fixed: Thingy: Subtext disappears when editing a field
7.5.18
- fixed: Collateral Image Manager broken in Firefox 3

View file

@ -1326,8 +1326,8 @@ sub www_editThing {
else{
$formElement = $self->getFormElement($field);
}
if ($field->{subText}){
$formElement .= '<span class="formSubtext">'.$field->{subText}.'</span>';
if ($field->{subtext}){
$formElement .= '<span class="formSubtext">'.$field->{subtext}.'</span>';
}
$fieldsHTML .= "<li class='list1' id='$field->{fieldId}'>"
@ -1720,8 +1720,8 @@ sub www_editFieldSave {
else{
$formElement = $self->getFormElement(\%properties);
}
if ($properties{subText}){
$formElement .= '<span class="formSubtext">'.$properties{subText}.'</span>';
if ($properties{subtext}){
$formElement .= '<br /><span class="formSubtext">'.$properties{subtext}.'</span>';
}
$listItemHTML = "<table>\n<tr>\n<td style='width:100px;' valign='top' class='formDescription'>".$label."</td>\n"
@ -1824,7 +1824,7 @@ sub www_editThingData {
"isHidden" => $hidden,
"isVisible" => ($field{status} eq "visible" && !$hidden),
"isRequired" => ($field{status} eq "required" && !$hidden),
"subtext" => $field{subText},
"subtext" => $field{subtext},
);
push(@field_loop, { map {("field_".$_ => $fieldProperties{$_})} keys(%fieldProperties) });
}