* [task#123510,done,1h] set extension fields.

This commit is contained in:
tianshujie
2024-07-24 10:01:07 +08:00
committed by 刘梦艺
parent 547f1fb0a9
commit 64c771543b
3 changed files with 12 additions and 4 deletions
+5 -4
View File
@@ -108,10 +108,11 @@ class story extends control
$fields = $this->storyZen->setModuleField($fields, $moduleID);
$fields = $this->storyZen->removeFormFieldsForCreate($fields, $storyType);
$this->view->title = $this->view->product->name . $this->lang->hyphen . $this->lang->story->create;
$this->view->fields = $fields;
$this->view->blockID = $this->storyZen->getAssignMeBlockID();
$this->view->type = $storyType;
$this->view->title = $this->view->product->name . $this->lang->hyphen . $this->lang->story->create;
$this->view->fields = $fields;
$this->view->blockID = $this->storyZen->getAssignMeBlockID();
$this->view->type = $storyType;
$this->view->initStory = $initStory;
$this->display();
}
+1
View File
@@ -116,6 +116,7 @@ formGridPanel
)),
set::fields($createFields),
set::pinnedItems($pinnedItems),
set::data($initStory),
on::click('#loadProductPlans', "loadProductPlans('{$productID}')"),
on::change('[name=module]', 'loadURS'),
on::change('[name=parent]', 'loadGrade'),
+6
View File
@@ -357,6 +357,12 @@ class storyZen extends story
$initStory->category = $story->category;
$initStory->feedbackBy = $story->feedbackBy;
$initStory->notifyEmail = $story->notifyEmail;
if($this->config->edition != 'open')
{
$extendFields = $this->loadModel('flow')->getExtendFields($story->type, 'create');
foreach($extendFields as $field) $initStory->{$field->field} = $story->{$field->field};
}
return $initStory;
}