diff --git a/Makefile b/Makefile
index 5b9871c1d2..1070028424 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@ clean:
rm -fr *.tar.gz
rm -fr *.zip
rm -fr build/linux/lampp
+ rm -rf buildroot/
rm -fr lampp
rm -fr zentaoxx
common:
@@ -191,14 +192,18 @@ en:
cd zentaopms/; grep -rl 'zentao.net'|xargs sed -i 's/zentao.net/zentao.pm/g';
cd zentaopms/; grep -rl 'http://www.zentao.pm'|xargs sed -i 's/http:\/\/www.zentao.pm/https:\/\/www.zentao.pm/g';
cd zentaopms/config/; echo >> config.php; echo '$$config->isINT = true;' >> config.php
+ make zentaoxx
+ unzip zentaoxx.*.zip
+ cp zentaoxx/* zentaopms/ -r
+ cat zentaoxx/db/xuanxuan.sql >> zentaopms/db/zentao.sql
make package
mv zentaopms zentaoalm
zip -r -9 ZenTaoALM.$(VERSION).int.zip zentaoalm
rm -fr zentaoalm
- echo $(VERSION).int > VERSION
- make endeb
- make enrpm
- echo $(VERSION) > VERSION
+ #echo $(VERSION).int > VERSION
+ #make endeb
+ #make enrpm
+ #echo $(VERSION) > VERSION
endeb:
mkdir buildroot
cp -r build/debian/DEBIAN buildroot
@@ -239,9 +244,13 @@ ci:
endif
make package
- if [ -d $(BUILD_PATH)/zentaopms ]; then rm -r $(BUILD_PATH)/zentaopms; fi
zip -rq -9 ZenTaoPMS.$(VERSION).zip zentaopms
- mv zentaopms $(BUILD_PATH)
- make deb; make rpm; make en
+ #make deb; make rpm; make en
rm -fr zentaopms zentaoxx zentaoxx.*.zip
- mv *.zip *.deb *.rpm $(BUILD_PATH)
+ make en
+ rm -fr zentaopms zentaoxx zentaoxx.*.zip
+ php tools/mergezentaopms.php $(VERSION)
+ rm zentaobiz*.zip zentaomax*.zip
+ cp ZenTaoPMS.$(VERSION).zip $(BUILD_PATH)
+ rm -f $(RELEASE_PATH)/*.deb $(RELEASE_PATH)/*.rpm
+ mv *.zip *.deb *.rpm $(RELEASE_PATH)
diff --git a/extension/lite/group/ext/lang/resource.php b/extension/lite/group/ext/lang/resource.php
index 8d647c9d9c..8c9f89ce2b 100644
--- a/extension/lite/group/ext/lang/resource.php
+++ b/extension/lite/group/ext/lang/resource.php
@@ -636,6 +636,7 @@ $lang->resource->custom->editStoryConcept = 'editStoryConcept';
$lang->resource->custom->browseStoryConcept = 'browseStoryConcept';
$lang->resource->custom->setDefaultConcept = 'setDefaultConcept';
$lang->resource->custom->deleteStoryConcept = 'deleteStoryConcept';
+if($config->edition != 'open') $lang->resource->custom->libreoffice = 'libreOffice';
$lang->custom->methodOrder[5] = 'index';
$lang->custom->methodOrder[10] = 'set';
@@ -651,6 +652,7 @@ $lang->custom->methodOrder[55] = 'editStoryConcept';
$lang->custom->methodOrder[60] = 'browseStoryConcept';
$lang->custom->methodOrder[65] = 'setDefaultConcept';
$lang->custom->methodOrder[70] = 'deleteStoryConcept';
+$lang->custom->methodOrder[75] = 'libreoffice';
$lang->resource->datatable = new stdclass();
$lang->resource->datatable->setGlobal = 'setGlobal';
diff --git a/module/bug/control.php b/module/bug/control.php
index 3844061cd9..76f9ee2e47 100644
--- a/module/bug/control.php
+++ b/module/bug/control.php
@@ -1241,7 +1241,7 @@ class bug extends control
}
else
{
- $users = $this->user->getPairs('noclosed|nofeedback', $bug->assignedTo);
+ $users = $this->user->getPairs('noclosed', $bug->assignedTo);
}
$this->view->title = $this->products[$bug->product] . $this->lang->colon . $this->lang->bug->assignedTo;
diff --git a/module/doc/lang/zh-cn.php b/module/doc/lang/zh-cn.php
index d602806276..d620c0dcc1 100644
--- a/module/doc/lang/zh-cn.php
+++ b/module/doc/lang/zh-cn.php
@@ -194,7 +194,7 @@ $lang->doc->noArticle = '暂时没有文章。';
$lang->doc->noLib = '暂时没有文档库。';
$lang->doc->noBook = 'WIKI库还未创建手册,请新建 :)';
$lang->doc->cannotCreateOffice = '
对不起,企业版才能创建%s文档。
试用企业版,请联系我们:4006-8899-23 0532-86893032。
';
-$lang->doc->notSetOffice = "创建%s文档,需要配置Office转换设置。
";
+$lang->doc->notSetOffice = "创建%s文档,需要配置Office转换设置。";
$lang->doc->noSearchedDoc = '没有搜索到任何文档。';
$lang->doc->noEditedDoc = '您还没有编辑任何文档。';
$lang->doc->noOpenedDoc = '您还没有创建任何文档。';
diff --git a/module/doc/view/create.html.php b/module/doc/view/create.html.php
index 95f96bef31..7db9fbd853 100644
--- a/module/doc/view/create.html.php
+++ b/module/doc/view/create.html.php
@@ -19,7 +19,16 @@
config->edition != 'open'):?>
- doc->notSetOffice, zget($lang->doc->typeList, $docType), common::hasPriv('custom', 'libreoffice') ? $this->createLink('custom', 'libreoffice') : '###');?>
+ doc->notSetOffice, zget($lang->doc->typeList, $docType), $this->createLink('custom', 'libreoffice', 'onlybody=yes'));
+ }
+ else
+ {
+ printf($lang->doc->notSetOffice, zget($lang->doc->typeList, $docType), '###'); echo $lang->doc->accessDenied;
+ }
+ ?>
doc->cannotCreateOffice, zget($lang->doc->typeList, $docType));?>
diff --git a/module/execution/control.php b/module/execution/control.php
index ec7ffd8eab..1189c8047c 100644
--- a/module/execution/control.php
+++ b/module/execution/control.php
@@ -2622,7 +2622,7 @@ class execution extends control
$this->loadModel('dept');
$execution = $this->execution->getById($executionID);
- $users = $this->user->getPairs('noclosed|nodeleted|devfirst|nofeedback', '', $this->config->maxCount);
+ $users = $this->user->getPairs('noclosed|nodeleted|devfirst', '', $this->config->maxCount);
$roles = $this->user->getUserRoles(array_keys($users));
$deptUsers = empty($dept) ? array() : $this->dept->getDeptUserPairs($dept);
@@ -2637,7 +2637,7 @@ class execution extends control
foreach($members2Import as $member) $appendUsers[$member->account] = $member->account;
foreach($deptUsers as $deptAccount => $userName) $appendUsers[$deptAccount] = $deptAccount;
- $users = $this->user->getPairs('noclosed|nodeleted|devfirst|nofeedback', $appendUsers, $this->config->maxCount);
+ $users = $this->user->getPairs('noclosed|nodeleted|devfirst', $appendUsers, $this->config->maxCount);
$roles = $this->user->getUserRoles(array_keys($users));
/* Set menu. */
diff --git a/module/project/control.php b/module/project/control.php
index 2eb8c75938..8b1292bc0a 100644
--- a/module/project/control.php
+++ b/module/project/control.php
@@ -1349,7 +1349,7 @@ class project extends control
}
$project = $this->project->getById($projectID);
- $users = $this->user->getPairs('noclosed|nodeleted|devfirst|nofeedback');
+ $users = $this->user->getPairs('noclosed|nodeleted|devfirst');
$roles = $this->user->getUserRoles(array_keys($users));
$deptUsers = $dept === '' ? array() : $this->dept->getDeptUserPairs($dept);
$userInfoList = $this->user->getUserDisplayInfos(array_keys($users), $dept);
diff --git a/module/search/model.php b/module/search/model.php
index b5dca0dc0e..f7ebc34a88 100644
--- a/module/search/model.php
+++ b/module/search/model.php
@@ -706,7 +706,7 @@ class searchModel extends model
$index->title = $object->{$fields->title};
$index->addedDate = isset($object->{$fields->addedDate}) ? $object->{$fields->addedDate} : '0000-00-00 00:00:00';
$index->editedDate = isset($object->{$fields->editedDate}) ? $object->{$fields->editedDate} : '0000-00-00 00:00:00';
- $index->vision = $this->config->vision;
+ $index->vision = isset($object->vision) ? $object->vision : 'rnd';
$index->content = '';
$contentFields = explode(',', $fields->content . ',comment');
diff --git a/module/task/model.php b/module/task/model.php
index c3bebf89a3..7363bdd6e0 100644
--- a/module/task/model.php
+++ b/module/task/model.php
@@ -2122,23 +2122,6 @@ class taskModel extends model
}
$parents = $this->dao->select('*')->from(TABLE_TASK)->where('id')->in($parents)->fetchAll('id');
- foreach($tasks as $task)
- {
- if($task->parent > 0)
- {
- if(isset($tasks[$task->parent]))
- {
- $tasks[$task->parent]->children[$task->id] = $task;
- unset($tasks[$task->id]);
- }
- else
- {
- $parent = $parents[$task->parent];
- $task->parentName = $parent->name;
- }
- }
- }
-
if ($this->config->vision == 'lite') {
$lanes = array();
$cardsWhere = '';
@@ -2173,6 +2156,23 @@ class taskModel extends model
}
}
+ foreach($tasks as $task)
+ {
+ if($task->parent > 0)
+ {
+ if(isset($tasks[$task->parent]))
+ {
+ $tasks[$task->parent]->children[$task->id] = $task;
+ unset($tasks[$task->id]);
+ }
+ else
+ {
+ $parent = $parents[$task->parent];
+ $task->parentName = $parent->name;
+ }
+ }
+ }
+
return $this->processTasks($tasks);
}
diff --git a/tools/cn2tw.php b/tools/cn2tw.php
index e993d86635..645f8c953c 100755
--- a/tools/cn2tw.php
+++ b/tools/cn2tw.php
@@ -6,6 +6,25 @@ if(empty($langType)) die('lang') . "\n";
foreach(array('../module/') as $subModuleRoot)
{
foreach(glob($subModuleRoot . '*') as $moduleName)
+ {
+ $realModulePath = realpath($moduleName);
+ $moduleLangPath = $realModulePath . '/lang/';
+ $defaultLangFile = $moduleLangPath . 'zh-cn.php';
+ $targetLangFile = $moduleLangPath . $langType . '.php';
+ if(file_exists($defaultLangFile))
+ {
+ system("cconv -f utf-8 -t UTF8-TW $defaultLangFile > $targetLangFile");
+ $defaultLang = file_get_contents($targetLangFile);
+ $targetLang = str_replace('zh-cn', $langDesc, $defaultLang);
+ file_put_contents($targetLangFile, $targetLang);
+ }
+ }
+}
+
+$basePath = dirname(dirname(__FILE__));
+foreach(glob($basePath . '/extension/*') as $extType)
+{
+ foreach(glob($extType . '/*') as $moduleName)
{
$realModulePath = realpath($moduleName);
$moduleLangPath = $realModulePath . '/lang/';
diff --git a/tools/mergezentaopms.php b/tools/mergezentaopms.php
new file mode 100755
index 0000000000..355d8c6346
--- /dev/null
+++ b/tools/mergezentaopms.php
@@ -0,0 +1,107 @@
+resource->im->notifyMSG = 'notifyMSG';
$lang->resource->im->sendNotification = 'sendNotification';
$lang->resource->im->sendChatMessage = 'sendChatMessage';
$lang->resource->im->downloadXxdPackage = 'downloadXXD';
+$lang->resource->im->debug = 'debug';
$lang->resource->client = new stdclass();
$lang->resource->client->browse = 'browse';
diff --git a/xuanxuan/extension/xuan/group/ext/lang/zh-cn/xuanxuan.php b/xuanxuan/extension/xuan/group/ext/lang/zh-cn/xuanxuan.php
index 4bd6677579..5b3ec49d83 100644
--- a/xuanxuan/extension/xuan/group/ext/lang/zh-cn/xuanxuan.php
+++ b/xuanxuan/extension/xuan/group/ext/lang/zh-cn/xuanxuan.php
@@ -14,6 +14,7 @@ $lang->resource->im->notifyMSG = 'notifyMSG';
$lang->resource->im->sendNotification = 'sendNotification';
$lang->resource->im->sendChatMessage = 'sendChatMessage';
$lang->resource->im->downloadXxdPackage = 'downloadXXD';
+$lang->resource->im->debug = 'debug';
$lang->resource->client = new stdclass();
$lang->resource->client->browse = 'browse';
diff --git a/xuanxuan/extension/xuan/im/ext/view/debug.html.php b/xuanxuan/extension/xuan/im/ext/view/debug.html.php
index 77167b104b..6e499f07b5 100644
--- a/xuanxuan/extension/xuan/im/ext/view/debug.html.php
+++ b/xuanxuan/extension/xuan/im/ext/view/debug.html.php
@@ -19,8 +19,8 @@
return;
}
?>
-app->user->admin != 'super'):?>
getModuleRoot() . 'common/view/header.lite.html.php';?>
+app->user->admin != 'super'):?>
-getModuleRoot() . 'common/view/header.modal.html.php';?>