fixed: shortcuts don't notify browsers of updates to their shortcutted asset
This commit is contained in:
parent
ab3b1d8968
commit
22176bc1eb
2 changed files with 10 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
7.6.0
|
||||
- fixed: shortcuts don't notify browsers of updates to their shortcutted asset
|
||||
- fixed: anonymous registration with email confirmation is broken
|
||||
- added an epochDate field to the template for CS RSS items. The ^D();
|
||||
macro can then format the epoch date.
|
||||
|
|
|
|||
|
|
@ -222,6 +222,14 @@ END_SQL
|
|||
return $newAsset;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub getContentLastModified {
|
||||
my $self = shift;
|
||||
my $assetRev = $self->get('revisionDate');
|
||||
my $shortcuttedRev = $self->getShortcut->get('revisionDate');
|
||||
return $assetRev > $shortcuttedRev ? $assetRev : $shortcuttedRev;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub getEditForm {
|
||||
my $self = shift;
|
||||
|
|
@ -962,7 +970,7 @@ sub www_view {
|
|||
# Make sure the www_view method won't be skipped b/c the asset is cached.
|
||||
$shortcut->purgeCache();
|
||||
|
||||
if ($shortcut->get("className") =~ m/Asset::Wobject/) {
|
||||
if ($shortcut->isa('WebGUI::Asset::Wobject')) {
|
||||
$self->session->http->setLastModified($self->getContentLastModified);
|
||||
$self->session->http->sendHeader;
|
||||
$shortcut->prepareView;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue