diff --git a/product/ERP5SyncML/Subscription.py b/product/ERP5SyncML/Subscription.py index c3a586c8addaceaf5faea9ec2d60fe008ec83f46..a40e6dab8e13ea2eec517f16d5f1c494dc332307 100644 --- a/product/ERP5SyncML/Subscription.py +++ b/product/ERP5SyncML/Subscription.py @@ -1240,7 +1240,7 @@ class Subscription(Folder, SyncCode): """ add a Signature to the subscription """ - if signature.getGid() in self.getGidList(): + if self.getSignatureFromGid(signature.getGid()) != None: self.delSignature(signature.getGid()) self._setObject(signature.getGid(), aq_base(signature))