diff --git a/module/datatable/view/ajaxcustom.html.php b/module/datatable/view/ajaxcustom.html.php
index 828b66e450..4533254625 100644
--- a/module/datatable/view/ajaxcustom.html.php
+++ b/module/datatable/view/ajaxcustom.html.php
@@ -194,8 +194,7 @@ $(function()
return sets;
}).get();
- //window.saveDatatableConfig('', setting, true, $('#global1').prop('checked') ? 1 : 0);
- window.saveDatatableConfig('', setting, true, $('#global1').prop('checked') ? 1 : 0);
+ window.saveDatatableConfig('', setting, true, $('#global1').prop('checked') ? 1 : 0);
});
$('#resetBtn').on("click", function()
diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php
index 7ec9947804..4834d2d99d 100644
--- a/module/product/view/browse.html.php
+++ b/module/product/view/browse.html.php
@@ -35,15 +35,15 @@
name, 'QUERY') === 0 ? '¶m=' . (int)substr($menuItem->name, 5) : '';?>
name == 'more'):?>
';
- echo html::a('javascript:;', $menuItem->text . " ", '', "data-toggle='dropdown' class='btn btn-link'");
- echo "
';
+ echo '';
+ echo html::a('javascript:;', $menuItem->text . " ", '', "data-toggle='dropdown' class='btn btn-link'");
+ echo "
';
?>
inlink('browse', "productID=$productID&branch=$branch&browseType=$menuBrowseType" . $queryParam), "$menuItem->text" . ($menuItem->name == $this->session->storyBrowseType ? ' ' . $pager->recTotal . '' : ''), '', "id='{$menuItem->name}Tab' class='btn btn-link" . ($this->session->storyBrowseType == $menuItem->name ? ' btn-active-text' : '') . "'");?>
@@ -109,7 +109,6 @@
$vars = "productID=$productID&branch=$branch&browseType=$browseType¶m=$param&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}";
if($useDatatable) include '../../common/view/datatable.html.php';
- if(!$useDatatable) include '../../common/view/tablesorter.html.php';
$setting = $this->datatable->getSetting('product');
$widths = $this->datatable->setFixedFieldWidth($setting);
$columns = 0;
diff --git a/module/todo/control.php b/module/todo/control.php
index 52523ee656..be605d5de5 100644
--- a/module/todo/control.php
+++ b/module/todo/control.php
@@ -481,9 +481,10 @@ class todo extends control
foreach($todos as $todo)
{
/* fill some field with useful value. */
+ $todo->begin = $todo->begin == '2400' ? '' : (isset($times[$todo->begin]) ? $times[$todo->begin] : $todo->begin);
+ $todo->end = $todo->end == '2400' ? '' : (isset($times[$todo->end]) ? $times[$todo->end] : $todo->end);
+
if(isset($users[$todo->account])) $todo->account = $users[$todo->account];
- if(isset($times[$todo->begin])) $todo->begin = $times[$todo->begin];
- if(isset($times[$todo->end])) $todo->end = $times[$todo->end];
if($todo->type == 'bug') $todo->name = isset($bugs[$todo->idvalue]) ? $bugs[$todo->idvalue] . "(#$todo->idvalue)" : '';
if($todo->type == 'task') $todo->name = isset($tasks[$todo->idvalue]) ? $tasks[$todo->idvalue] . "(#$todo->idvalue)" : '';
if(isset($todoLang->typeList[$todo->type])) $todo->type = $todoLang->typeList[$todo->type];