Alexander Nicolaysen Sørnes : vendor: If an admin adds a duplicate vendor, unqueue matching entry if it exists
Alexander Nicolaysen Sørnes
asornes at winehq.org
Sun Nov 22 08:38:23 CST 2009
Module: appdb
Branch: master
Commit: 61439a79ce6af01e66fd578793c80a864f370f75
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=61439a79ce6af01e66fd578793c80a864f370f75
Author: Alexander Nicolaysen Sørnes <alexander at linux-xqqm.(none)>
Date: Sun Nov 22 04:07:50 2009 +0100
vendor: If an admin adds a duplicate vendor, unqueue matching entry if it exists
---
include/vendor.php | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/include/vendor.php b/include/vendor.php
index e808215..820741b 100644
--- a/include/vendor.php
+++ b/include/vendor.php
@@ -76,6 +76,9 @@ class Vendor {
{
$this->vendor($oRow->vendorId);
+ if(!$this->mustBeQueued())
+ $this->unQueue();
+
/* Even though we did not create a new vendor, the caller is provided
with an id and can proceed as normal, so we return TRUE */
return TRUE;
More information about the wine-cvs
mailing list