diff --git a/module/common/view/tablesorter.html.php b/module/common/view/tablesorter.html.php
index a7fcbf2c65..a03f7e7213 100755
--- a/module/common/view/tablesorter.html.php
+++ b/module/common/view/tablesorter.html.php
@@ -3,26 +3,32 @@
js::import($jsRoot . 'jquery/tablesorter/min.js');
js::import($jsRoot . 'jquery/tablesorter/metadata.js');
?>
+
+
diff --git a/module/productplan/view/linkstory.html.php b/module/productplan/view/linkstory.html.php
index e174abf8ff..d49b1fb01f 100644
--- a/module/productplan/view/linkstory.html.php
+++ b/module/productplan/view/linkstory.html.php
@@ -10,6 +10,10 @@
* @link http://www.zentao.net
*/
?>
+app->getWebRoot() . "js/";
+include '../../common/view/tablesorter.html.php';
+?>
-
+
diff --git a/module/productplan/view/view.html.php b/module/productplan/view/view.html.php
index 7ed7ff54be..f5ce083d49 100644
--- a/module/productplan/view/view.html.php
+++ b/module/productplan/view/view.html.php
@@ -62,15 +62,15 @@
id}&type=story&orderBy=%s&link=$link¶m=$param"; ?>
- | idAB);?> |
- priAB);?> |
- story->title);?> |
- openedByAB);?> |
- assignedToAB);?> |
- story->estimateAB);?> |
- statusAB);?> |
- story->stageAB);?> |
- actions?> |
+ idAB);?> |
+ priAB);?> |
+ story->title);?> |
+ openedByAB);?> |
+ assignedToAB);?> |
+ story->estimateAB);?> |
+ statusAB);?> |
+ story->stageAB);?> |
+ actions?> |
@@ -138,13 +138,13 @@
id}&type=bug&orderBy=%s&link=$link¶m=$param"; ?>
- | idAB);?> |
- priAB);?> |
- bug->title);?> |
- openedByAB);?> |
- assignedToAB);?> |
- statusAB);?> |
- actions?> |
+ idAB);?> |
+ priAB);?> |
+ bug->title);?> |
+ openedByAB);?> |
+ assignedToAB);?> |
+ statusAB);?> |
+ actions?> |
diff --git a/module/user/model.php b/module/user/model.php
index 0bafb1f177..c36452464a 100644
--- a/module/user/model.php
+++ b/module/user/model.php
@@ -639,7 +639,7 @@ class userModel extends model
break;
}
$acl = json_decode($group->acl, true);
- if(empty($acls))
+ if(empty($acls) and !empty($acl))
{
$acls = $acl;
continue;
@@ -648,7 +648,7 @@ class userModel extends model
if(empty($acl['products'])) $productAllow = true;
if(empty($acl['projects'])) $projectAllow = true;
- $acls['views'] = array_merge($acls['views'], $acl['views']);
+ if(!empty($acl['views'])) $acls['views'] = array_merge($acls['views'], $acl['views']);
if(!empty($acl['products'])) $acls['products'] = !empty($acls['products']) ? array_merge($acls['products'], $acl['products']) : $acl['products'];
if(!empty($acl['projects'])) $acls['projects'] = !empty($acls['projects']) ? array_merge($acls['projects'], $acl['projects']) : $acl['projects'];
}