fixed - fix [ 1276625 ] viewRSS not working (Andrew Khmelev)

- fix [ 1276695 ] Addition to 'viewRSS not working' (6.7.2) (Andrew Khmelev)
 - Fixed a layout problem with the user search form.
 - fix [ 1250418 ] unable to edit posts more than once
This commit is contained in:
JT Smith 2005-08-31 12:56:38 +00:00
parent 04a76e9910
commit 97161c798e
6 changed files with 32 additions and 37 deletions

View file

@ -4,7 +4,10 @@
and karma were not showing up when editing users. and karma were not showing up when editing users.
- fix [ 1274239 ] Can Not Save Edits to Assets - fix [ 1274239 ] Can Not Save Edits to Assets
- fix [ 1274414 ] extraHeadTags entirely unused (mwilson) - fix [ 1274414 ] extraHeadTags entirely unused (mwilson)
- fix [ 1276625 ] viewRSS not working (Andrew Khmelev)
- fix [ 1276695 ] Addition to 'viewRSS not working' (6.7.2) (Andrew Khmelev)
- Fixed a layout problem with the user search form.
- fix [ 1250418 ] unable to edit posts more than once
6.7.2 6.7.2
- fix [ 1163407 ] Ampersand XHTML 1.0 Non-Compliant - fix [ 1163407 ] Ampersand XHTML 1.0 Non-Compliant

View file

@ -983,7 +983,7 @@ sub www_edit {
value=>"edit" value=>"edit"
}) })
.WebGUI::Form::hidden({ .WebGUI::Form::hidden({
name=>"userId", name=>"ownerUserId",
value=>$self->getValue("ownerUserId") value=>$self->getValue("ownerUserId")
}) })
.WebGUI::Form::hidden({ .WebGUI::Form::hidden({

View file

@ -1141,13 +1141,13 @@ sub www_viewRSS {
group by assetData.assetId group by assetData.assetId
order by ".$self->getValue("sortBy")." ".$self->getValue("sortOrder")); order by ".$self->getValue("sortBy")." ".$self->getValue("sortOrder"));
my $i = 1; my $i = 1;
while (my ($id, $class, $version) = $sth->hashRef) { while (my ($id, $class, $version) = $sth->array) {
my $post = WebGUI::Asset::Wobject::Collaboration->new($id, $class, $version); my $post = WebGUI::Asset::Wobject::Collaboration->new($id, $class, $version);
my $encUrl = _xml_encode(WebGUI::URL::getSiteURL().$post->getUrl); my $encUrl = _xml_encode(WebGUI::URL::getSiteURL().$post->getUrl);
my $encTitle = _xml_encode($post->get("title")); my $encTitle = _xml_encode($post->get("title"));
my $encPubDate = _xml_encode(_get_rfc822_date($post->get("dateUpdated"))); my $encPubDate = _xml_encode(_get_rfc822_date($post->get("dateUpdated")));
my $encDescription = _xml_encode($self->get("synopsis")); my $encDescription = _xml_encode($post->get("synopsis"));
$xml .= qq~ $xml .= qq~
<item> <item>
<title>$encTitle</title> <title>$encTitle</title>

View file

@ -78,7 +78,6 @@ sub _tableFormRow {
my $label = shift; my $label = shift;
my $formControl = shift; my $formControl = shift;
my $hoverHelp = shift; my $hoverHelp = shift;
unless ($self->{_noTable}) {
my $class = $self->{_class}; my $class = $self->{_class};
$class = qq| class="$class" | if($class); $class = qq| class="$class" | if($class);
$hoverHelp =~ s/\r/ /g; $hoverHelp =~ s/\r/ /g;
@ -94,9 +93,6 @@ sub _tableFormRow {
$hoverHelp =~ s/^\s+//; $hoverHelp =~ s/^\s+//;
my $tooltip = qq|onmouseover="return escape('$hoverHelp')"| if ($hoverHelp); my $tooltip = qq|onmouseover="return escape('$hoverHelp')"| if ($hoverHelp);
return '<tr'.$class.'><td '.$tooltip.' class="formDescription" valign="top" style="width: 25%;">'.$label.'</td><td class="tableData" style="width: 75%;">'.$formControl."</td></tr>\n"; return '<tr'.$class.'><td '.$tooltip.' class="formDescription" valign="top" style="width: 25%;">'.$label.'</td><td class="tableData" style="width: 75%;">'.$formControl."</td></tr>\n";
} else {
return $formControl;
}
} }
#------------------------------------------------------------------- #-------------------------------------------------------------------
@ -192,14 +188,10 @@ sub dynamicField {
#------------------------------------------------------------------- #-------------------------------------------------------------------
=head2 new ( [ noTable, action, method, extras, enctype, tableExtras ] ) =head2 new ( [ action, method, extras, enctype, tableExtras ] )
Constructor. Constructor.
=head3 noTable
If this is set to "1" then no table elements will be wrapped around each form element. Defaults to "0".
=head3 action =head3 action
The Action URL for the form information to be submitted to. This defaults to the current page. The Action URL for the form information to be submitted to. This defaults to the current page.
@ -230,17 +222,16 @@ sub new {
my ($header, $footer); my ($header, $footer);
my $class = shift; my $class = shift;
my %param = @_; my %param = @_;
$param{noTable} ||= 0;
$header = "\n\n".WebGUI::Form::formHeader({ $header = "\n\n".WebGUI::Form::formHeader({
action=>$param{action}, action=>$param{action},
extras=>$param{extras}, extras=>$param{extras},
method=>$param{method}, method=>$param{method},
enctype=>$param{enctype} enctype=>$param{enctype}
}); });
$header .= "\n<table ".$param{tableExtras}.'><tbody>' unless ($param{noTable}); $header .= "\n<table ".$param{tableExtras}.'><tbody>';
$footer = "</tbody></table>\n" unless ($param{noTable}); $footer = "</tbody></table>\n" ;
$footer .= WebGUI::Form::formFooter(); $footer .= WebGUI::Form::formFooter();
bless {_uiLevelOverride=>$param{uiLevelOverride}, _noTable => $param{noTable}, _header => $header, _footer => $footer, _data => ''}, $class; bless {_uiLevelOverride=>$param{uiLevelOverride}, _header => $header, _footer => $footer, _data => ''}, $class;
} }
#------------------------------------------------------------------- #-------------------------------------------------------------------

View file

@ -18,6 +18,7 @@ use WebGUI::DateTime;
use WebGUI::FormProcessor; use WebGUI::FormProcessor;
use WebGUI::Group; use WebGUI::Group;
use WebGUI::Grouping; use WebGUI::Grouping;
use WebGUI::Form;
use WebGUI::HTMLForm; use WebGUI::HTMLForm;
use WebGUI::Icon; use WebGUI::Icon;
use WebGUI::International; use WebGUI::International;
@ -107,23 +108,23 @@ sub getUserSearchForm {
WebGUI::Session::setScratch("userSearchKeyword",$session{form}{keyword}); WebGUI::Session::setScratch("userSearchKeyword",$session{form}{keyword});
WebGUI::Session::setScratch("userSearchStatus",$session{form}{status}); WebGUI::Session::setScratch("userSearchStatus",$session{form}{status});
WebGUI::Session::setScratch("userSearchModifier",$session{form}{modifier}); WebGUI::Session::setScratch("userSearchModifier",$session{form}{modifier});
my $output = '<div align="center">'; my $output = '<div align="center">'
my $f = WebGUI::HTMLForm->new(1); .WebGUI::Form::formHeader()
$f->hidden( .WebGUI::Form::hidden(
-name => "op", name => "op",
-value => $op value => $op
); );
foreach my $key (keys %{$params}) { foreach my $key (keys %{$params}) {
$f->hidden( $output .= WebGUI::Form::hidden(
-name=>$key, name=>$key,
-value=>$params->{$key} value=>$params->{$key}
); );
} }
$f->hidden( $output .= WebGUI::Form::hidden(
-name=>"doit", -name=>"doit",
-value=>1 -value=>1
); )
$f->selectList( .WebGUI::Form::selectList(
-name=>"modifier", -name=>"modifier",
-value=>([$session{scratch}{userSearchModifier} || "contains"]), -value=>([$session{scratch}{userSearchModifier} || "contains"]),
-options=>{ -options=>{
@ -131,13 +132,13 @@ sub getUserSearchForm {
contains=>WebGUI::International::get("contains"), contains=>WebGUI::International::get("contains"),
endsWith=>WebGUI::International::get("ends with") endsWith=>WebGUI::International::get("ends with")
} }
); )
$f->text( .WebGUI::Form::text(
-name=>"keyword", -name=>"keyword",
-value=>$session{scratch}{userSearchKeyword}, -value=>$session{scratch}{userSearchKeyword},
-size=>15 -size=>15
); )
$f->selectList( .WebGUI::Form::selectList(
-name => "status", -name => "status",
-value => [$session{scratch}{userSearchStatus} || "users.status like '%'"], -value => [$session{scratch}{userSearchStatus} || "users.status like '%'"],
-options=> { -options=> {
@ -146,9 +147,9 @@ sub getUserSearchForm {
Deactivated => WebGUI::International::get(818), Deactivated => WebGUI::International::get(818),
Selfdestructed => WebGUI::International::get(819) Selfdestructed => WebGUI::International::get(819)
} }
); )
$f->submit(value=>WebGUI::International::get(170)); .WebGUI::Form::submit(value=>WebGUI::International::get(170))
$output .= $f->print; .WebGUI::Form::formFooter();
$output .= '</div>'; $output .= '</div>';
return $output; return $output;
} }

View file

@ -85,7 +85,7 @@ sub generateAdditionalHeadTags {
$tags .= ' />'."\n"; $tags .= ' />'."\n";
} }
# append extraHeadTags # append extraHeadTags
$tags .= $session{asset}->getExtraHeadTags."\n"; $tags .= $session{asset}->getExtraHeadTags."\n" if ($session{asset});
delete $session{page}{head}; delete $session{page}{head};
return $tags; return $tags;