fix: wiki recent
This commit is contained in:
parent
0dab843407
commit
417bad4dfa
2 changed files with 11 additions and 6 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
- Clean up orphaned grouping
|
- Clean up orphaned grouping
|
||||||
- fix: purging old asset revisions on large sites never completes
|
- fix: purging old asset revisions on large sites never completes
|
||||||
- fix: Can't add assets when not using preload.perl.
|
- fix: Can't add assets when not using preload.perl.
|
||||||
|
- fix: wiki recent
|
||||||
- fix: graphing doesn't work with GraphicsMagick
|
- fix: graphing doesn't work with GraphicsMagick
|
||||||
- fix: Calendar generated iCal for last 30 days instead of next 30 days
|
- fix: Calendar generated iCal for last 30 days instead of next 30 days
|
||||||
- fix: hover help doesn't appear for matrix fields
|
- fix: hover help doesn't appear for matrix fields
|
||||||
|
|
|
||||||
|
|
@ -40,12 +40,16 @@ sub appendRecentChanges {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $var = shift;
|
my $var = shift;
|
||||||
my $limit = shift || $self->get("recentChangesCount") || 50;
|
my $limit = shift || $self->get("recentChangesCount") || 50;
|
||||||
foreach my $asset (@{$self->getLineage(["children"], {
|
my $revisions = $self->session->db->read("select asset.assetId, assetData.revisionDate, asset.className
|
||||||
returnObjects => 1,
|
from asset left join assetData using (assetId) where asset.parentId=? and asset.className
|
||||||
limit => $limit,
|
like ? order by assetData.revisionDate desc limit ?", [$self->getId,
|
||||||
includeOnlyClasses =>["WebGUI::Asset::WikiPage"],
|
"WebGUI::Asset::WikiPage%", $limit]);
|
||||||
orderByClause => "assetData.revisionDate desc"
|
while (my ($id, $version, $class) = $revisions->array) {
|
||||||
})}) {
|
my $asset = WebGUI::Asset->new($self->session, $id, $class, $version);
|
||||||
|
unless (defined $asset) {
|
||||||
|
$self->session->errorHandler->error("Asset $id $class $version could not be instanciated.");
|
||||||
|
next;
|
||||||
|
}
|
||||||
my $user = WebGUI::User->new($self->session, $asset->get("actionTakenBy"));
|
my $user = WebGUI::User->new($self->session, $asset->get("actionTakenBy"));
|
||||||
my $specialAction = '';
|
my $specialAction = '';
|
||||||
my $isAvailable = 1;
|
my $isAvailable = 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue