Commit 8d326538 authored by Ivan Tyagov's avatar Ivan Tyagov

Do not try to remove from list of related documents the HTML representation of a document.

Instead remove the document itself.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22070 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c4037c6e
...@@ -367,7 +367,6 @@ class PermanentURLMixIn(ExtensibleTraversableMixIn): ...@@ -367,7 +367,6 @@ class PermanentURLMixIn(ExtensibleTraversableMixIn):
if cache is not None: if cache is not None:
if cache.get(key, _MARKER) is _MARKER: cache[key] = method if cache.get(key, _MARKER) is _MARKER: cache[key] = method
return method(name, portal=portal, **kw) return method(name, portal=portal, **kw)
class Document(PermanentURLMixIn, XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin): class Document(PermanentURLMixIn, XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin):
...@@ -795,7 +794,8 @@ class Document(PermanentURLMixIn, XMLObject, UrlMixIn, ConversionCacheMixin, Sna ...@@ -795,7 +794,8 @@ class Document(PermanentURLMixIn, XMLObject, UrlMixIn, ConversionCacheMixin, Sna
if lista_latest.has_key(self): if lista_latest.has_key(self):
lista_latest.pop(self) # remove this document lista_latest.pop(self) # remove this document
if lista_latest.has_key(self.getLatestVersionValue()): if lista_latest.has_key(self.getLatestVersionValue()):
lista_latest.pop(self()) # remove this document # remove last version of document itself from related documents
lista_latest.pop(self.getLatestVersionValue())
return lista_latest.keys() return lista_latest.keys()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment