* [task#123510,done,1h] set extension fields.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user