diff --git a/module/product/control.php b/module/product/control.php
index 387c9a1c32..e82a8fec4a 100644
--- a/module/product/control.php
+++ b/module/product/control.php
@@ -138,7 +138,6 @@ class product extends control
$moduleID = ($browseType == 'bymodule') ? (int)$param : ($browseType == 'bysearch' ? 0 : ($this->cookie->storyModule ? $this->cookie->storyModule : 0));
$queryID = ($browseType == 'bysearch') ? (int)$param : 0;
- if($browseType == 'unclosed') $moduleID = 0;
/* Set menu. */
$this->product->setMenu($this->products, $productID, $branch);
diff --git a/module/sso/control.php b/module/sso/control.php
index 5661eb1dda..4fbe1994ea 100644
--- a/module/sso/control.php
+++ b/module/sso/control.php
@@ -22,7 +22,6 @@ class sso extends control
{
$referer = empty($_GET['referer']) ? '' : $this->get->referer;
$locate = empty($referer) ? getWebRoot() : base64_decode($referer);
- if($this->loadModel('user')->isLogon()) die($this->locate($locate));
$this->app->loadConfig('sso');
if(!$this->config->sso->turnon) die($this->locate($locate));
@@ -40,9 +39,9 @@ class sso extends control
if(strpos($location, '&') !== false)
{
$location = rtrim($location, '&') . "&token=$token&auth=$auth&userIP=$userIP&callback=$callback&referer=$referer";
- }
+ }
else
- {
+ {
$location = rtrim($location, '?') . "?token=$token&auth=$auth&userIP=$userIP&callback=$callback&referer=$referer";
}
$this->locate($location);
@@ -63,6 +62,11 @@ class sso extends control
$this->locate($this->createLink('sso', 'bind', "referer=" . helper::safe64Encode($locate)));
}
+ if($this->loadModel('user')->isLogon())
+ {
+ if($this->session->user && $this->session->user->account == $user->account) die($this->locate($locate));
+ }
+
$this->user->cleanLocked($user->account);
/* Authorize him and save to session. */
$user->rights = $this->user->authorize($user->account);
diff --git a/module/story/model.php b/module/story/model.php
index 3fd9b52788..fc12fc81be 100644
--- a/module/story/model.php
+++ b/module/story/model.php
@@ -1996,10 +1996,9 @@ class storyModel extends model
foreach($datas as $key => $project)
{
if(!$project->branch) continue;
- $branchIDList[] = $project->branch;
+ $branchIDList[$project->branch] = $project->branch;
}
- $branchIDList = array_unique($branchIDList);
$branchs = $this->dao->select('id, name')->from(TABLE_BRANCH)->where('id')->in($branchIDList)->andWhere('deleted')->eq(0)->fetchALL('id');
$modules = $this->loadModel('tree')->getModulesName(array_keys($datas));
diff --git a/module/task/css/edit.css b/module/task/css/edit.css
index 0ec48066f5..865ead609b 100644
--- a/module/task/css/edit.css
+++ b/module/task/css/edit.css
@@ -1,2 +1,5 @@
.col-side .chosen-container .chosen-drop {width: 216px!important}
.col-side .chosen-container {width: 218px!important}
+#finishedDate.form-control.form-date {width: 218px!important}
+#canceledDate.form-control.form-date {width: 218px!important}
+#closedDate.form-control.form-date {width: 218px!important}
diff --git a/module/task/view/edit.html.php b/module/task/view/edit.html.php
index 124a0a7386..04e7086b73 100644
--- a/module/task/view/edit.html.php
+++ b/module/task/view/edit.html.php
@@ -80,7 +80,7 @@
| task->assignedTo;?> |
assignedTo, "class='form-control chosen'");?> |
-
+
| task->type;?> |
task->typeList, $task->type, 'class=form-control');?> |
@@ -88,7 +88,7 @@
| task->status;?> |
task->statusList, $task->status, 'class=form-control');?> |
-
+
| task->pri;?> |
task->priList, $task->pri, 'class=form-control');?> |
@@ -101,27 +101,27 @@