[Fusionforge-commits] r14239 - branches/Branch_5_1/src/common/pm
Olivier Berger
olberger at fusionforge.org
Thu Aug 25 14:23:32 CEST 2011
Author: olberger
Date: 2011-08-25 14:23:32 +0200 (Thu, 25 Aug 2011)
New Revision: 14239
Modified:
branches/Branch_5_1/src/common/pm/ProjectCategory.class.php
Log:
Apply reworked version of patch from https://fusionforge.org/tracker/download.php/6/107/305/193/pmPatch.patch
Modified: branches/Branch_5_1/src/common/pm/ProjectCategory.class.php
===================================================================
--- branches/Branch_5_1/src/common/pm/ProjectCategory.class.php 2011-08-25 12:23:30 UTC (rev 14238)
+++ branches/Branch_5_1/src/common/pm/ProjectCategory.class.php 2011-08-25 12:23:32 UTC (rev 14239)
@@ -104,20 +104,21 @@
if ($result && db_affected_rows($result) > 0) {
$this->clearError();
- return true;
- } else {
- $this->setError(db_error());
- return false;
- }
+
+ $id=db_insertid($result,'project_category','category_id');
-/*
//
// Now set up our internal data structures
//
if (!$this->fetchData($id)) {
return false;
+ } else {
+ return true;
}
-*/
+ } else {
+ $this->setError(db_error());
+ return false;
+ }
}
/**
More information about the Fusionforge-commits
mailing list