fix - Ignoring shortcut overrides

This commit is contained in:
Roy Johnson 2007-02-06 18:06:09 +00:00
parent cae65be309
commit 9fe730adbb
3 changed files with 3 additions and 0 deletions

View file

@ -59,6 +59,7 @@
- fix: SQLForm: set issues (perlDreamer Consulting, LLC)
- fix: Collab System FAQ: clicking top link does not bring you back to the top of FAQ (perlDreamer Consulting, LLC)
- fix: SQL Report download template (perlDreamer Consulting, LLC)
- fix: Ignoring shortcut overrides.
7.3.8
- Fixed a template variable rewriting problem with HTML::Template::Expr

View file

@ -866,6 +866,7 @@ sub www_saveOverride {
$self->session->db->write("delete from Shortcut_overrides where assetId=".$self->session->db->quote($self->getId)." and fieldName=".$self->session->db->quote($fieldName));
$self->session->db->write("insert into Shortcut_overrides values (".$self->session->db->quote($self->getId).",".$self->session->db->quote($fieldName).",".$self->session->db->quote($value).")");
$self->uncacheOverrides;
$self->getShortcutOriginal->purgeCache();
return $self->www_manageOverrides;
}

View file

@ -940,6 +940,7 @@ See WebGUI::Asset::purgeCache() for details.
sub purgeCache {
my $self = shift;
WebGUI::Cache->new($self->session,"view_".$self->getId)->delete;
WebGUI::Cache->new($self->session,$self->_visitorCacheKey)->delete;
$self->SUPER::purgeCache;
}