Merge branch 'zentaopms_256' of https://gitlab.zcorp.cc/easycorp/zentaopms into zentaopms_256

This commit is contained in:
Yagami
2022-12-01 15:15:22 +08:00
7 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -1048,7 +1048,7 @@ class product extends control
$multiple = strpos($param, 'multiple') === false ? '' : 'multiple';
$output = html::select($field, $plans, $planID, "class='form-control chosen' $multiple");
if($branch == 0 and strpos($param, 'edit') and !strpos($param, 'forstory')) $output = html::select($field, $plans, $planID, "class='form-control chosen' multiple");
if($branch == 0 and strpos($param, 'edit') and (strpos($param, 'forstory') === false)) $output = html::select($field, $plans, $planID, "class='form-control chosen' multiple");
if(count($plans) == 1 and $needCreate and $needCreate !== 'false')
{
+1 -1
View File
@@ -947,7 +947,7 @@ class productplan extends control
*/
public function ajaxGetConflict($planID, $newBranch)
{
if(empty($newBranch)) return;
if($newBranch != '') return;
$plan = $this->productplan->getByID($planID);
$oldBranch = $plan->branch;
+1 -2
View File
@@ -440,8 +440,7 @@ class story extends control
$this->view->users = $users;
$this->view->moduleID = $moduleID;
$this->view->moduleOptionMenu = $moduleOptionMenu;
$this->view->plans = str_replace('2030-01-01', $this->lang->story->undetermined, $this->loadModel('productplan')->getPairsForStory($productID, $branch == 0 ? '' : $branch, 'skipParent|unexpired|noclosed'));
$this->view->planID = $planID;
$this->view->plans = str_replace('2030-01-01', $this->lang->story->undetermined, $this->loadModel('productplan')->getPairsForStory($productID, $branch == 0 ? '' : $branch, 'skipParent|unexpired|noclosed')); $this->view->planID = $planID;
$this->view->source = $source;
$this->view->sourceNote = $sourceNote;
$this->view->color = $color;
+1 -1
View File
@@ -12,7 +12,7 @@
global $config;
$lang->story->create = "Story hinzufügen";
$lang->story->requirement = zget($lang, 'URCommon', "Requirement");
$lang->story->requirement = 'UR';
$lang->story->story = zget($lang, 'SRCommon', "Story");
$lang->story->createStory = 'Create ' . $lang->story->story;
$lang->story->createRequirement = 'Create ' . $lang->story->requirement;
+1 -1
View File
@@ -12,7 +12,7 @@
global $config;
$lang->story->create = "Create Story";
$lang->story->requirement = zget($lang, 'URCommon', "Requirement");
$lang->story->requirement = 'UR';
$lang->story->story = zget($lang, 'SRCommon', "Story");
$lang->story->createStory = 'Create ' . $lang->story->story;
$lang->story->createRequirement = 'Create ' . $lang->story->requirement;
+1 -1
View File
@@ -12,7 +12,7 @@
global $config;
$lang->story->create = "Créer Story";
$lang->story->requirement = zget($lang, 'URCommon', "Requirement");
$lang->story->requirement = 'UR';
$lang->story->story = zget($lang, 'SRCommon', "Story");
$lang->story->createStory = 'Create ' . $lang->story->story;
$lang->story->createRequirement = 'Create ' . $lang->story->requirement;
+1 -1
View File
@@ -889,7 +889,7 @@ class storyModel extends model
return false;
}
$storyPlan = !empty($_POST['plan']) ? $_POST['plan'] : array();
$storyPlan = !empty($_POST['plan']) ? array_filter($_POST['plan']) : array();
if(count($storyPlan) > 1)
{
$oldStoryPlan = !empty($oldStory->planTitle) ? array_keys($oldStory->planTitle) : array();