diff --git a/db/update4.0.beta2.sql b/db/update4.0.beta2.sql index 785d26ae67..50bed16b2d 100644 --- a/db/update4.0.beta2.sql +++ b/db/update4.0.beta2.sql @@ -14,3 +14,4 @@ UPDATE `zt_config` SET `section` = 'global' WHERE `key` = 'flow'; UPDATE `zt_project` SET `status` = 'doing' WHERE `status` = ''; ALTER TABLE `zt_testtask` ADD `report` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `desc`; ALTER TABLE `zt_project` CHANGE `type` `type` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'sprint'; +ALTER TABLE `zt_taskEstimate` CHANGE `date` `date` DATE NOT NULL; diff --git a/framework/helper.class.php b/framework/helper.class.php index 62602f2311..918e239990 100644 --- a/framework/helper.class.php +++ b/framework/helper.class.php @@ -108,7 +108,7 @@ class helper } /* if page has onlybody param then add this param in all link. the param hide header and footer. */ - if($onlybody or (isset($_GET['onlybody']) and $_GET['onlybody'] == 'yes')) + if($onlybody or isonlybody()) { $onlybody = $config->requestType == 'PATH_INFO' ? "?onlybody=yes" : "&onlybody=yes"; $link .= $onlybody; @@ -543,3 +543,14 @@ function getWebRoot() { return substr($_SERVER['SCRIPT_NAME'], 0, (strrpos($_SERVER['SCRIPT_NAME'], '/') + 1)); } + +/** + * Check exist onlybody param. + * + * @access public + * @return void + */ +function isonlybody() +{ + return (isset($_GET['onlybody']) and $_GET['onlybody'] == 'yes'); +} diff --git a/lib/front/front.class.php b/lib/front/front.class.php index 98e712cbf9..c34d1c2ba6 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -87,7 +87,7 @@ class html $newline = $newline ? "\n" : ''; /* if page has onlybody param then add this param in all link. the param hide header and footer. */ - if(strpos($href, 'onlybody=yes') === false and isset($_GET['onlybody']) and $_GET['onlybody'] == 'yes') + if(strpos($href, 'onlybody=yes') === false and isonlybody()) { $onlybody = $config->requestType == 'PATH_INFO' ? "?onlybody=yes" : "&onlybody=yes"; $href .= $onlybody; @@ -462,7 +462,7 @@ EOT; global $config; /* if page has onlybody param then add this param in all link. the param hide header and footer. */ - if(strpos($link, 'onlybody=') === false and isset($_GET['onlybody']) and $_GET['onlybody'] == 'yes') + if(strpos($link, 'onlybody=') === false and isonlybody()) { $onlybody = $config->requestType == 'PATH_INFO' ? "?onlybody=yes" : "&onlybody=yes"; $link .= $onlybody; diff --git a/module/project/js/task.js b/module/project/js/task.js index 3ae35f9f8b..dfce145cc4 100644 --- a/module/project/js/task.js +++ b/module/project/js/task.js @@ -10,6 +10,7 @@ $(function() { $('#' + browseType + 'Tab').addClass('active'); if(browseType == 'bysearch') ajaxGetSearchForm(); + $('.iframe').colorbox({width:900, height:400, iframe:true}); }); /* Browse by project. */ diff --git a/module/project/view/task.html.php b/module/project/view/task.html.php index f453062c5e..277a99ef75 100644 --- a/module/project/view/task.html.php +++ b/module/project/view/task.html.php @@ -120,7 +120,7 @@ var browseType = '';