projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52e801b
)
Merged from 5.1 (via 5.2): Fixed over-enthusiastic optimisation
author
Roland Mas
<lolando@debian.org>
Thu, 5 Apr 2012 15:48:48 +0000
(15:48 +0000)
committer
Roland Mas
<lolando@debian.org>
Thu, 5 Apr 2012 15:48:48 +0000
(15:48 +0000)
src/common/tracker/Artifact.class.php
patch
|
blob
|
history
diff --git
a/src/common/tracker/Artifact.class.php
b/src/common/tracker/Artifact.class.php
index e95e6eb94c875fd2db13e11c00b45db1a5ae9e83..f10399c142e74459bd504ffa1c3e0e39f66475f1 100644
(file)
--- a/
src/common/tracker/Artifact.class.php
+++ b/
src/common/tracker/Artifact.class.php
@@
-1230,15
+1230,16
@@
class Artifact extends Error {
skip it and continue to next item
*/
- if (empty($extra_fields)) {
- return true;
- }
$update = false;
//get a list of extra fields for this artifact_type
$ef = $this->ArtifactType->getExtraFields();
$efk=array_keys($ef);
+ if (empty($extra_fields) && empty($ef)) {
+ return true;
+ }
+
// If there is a status field, then check against the workflow.
// Unless if we change type.
if (! isset($changes['Type']) || !$changes['Type']) {