This commit is contained in:
hufangzhou
2022-05-12 15:46:49 +08:00
parent dd4566f1ea
commit 4c7619bcb9
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
<?php
$config->action->objectNameFields['product'] = 'name';
$config->action->objectNameFields['story'] = 'title';
$config->action->objectNameFields['requirement'] = 'title';
$config->action->objectNameFields['productplan'] = 'title';
$config->action->objectNameFields['release'] = 'name';
$config->action->objectNameFields['program'] = 'name';
+3 -1
View File
@@ -1187,7 +1187,9 @@ class story extends control
}
else
{
$this->story->delete(TABLE_STORY, $storyID);
$this->dao->update(TABLE_STORY)->set('deleted')->eq(1)->where('id')->eq($storyID)->exec();
$this->loadModel('action')->create($story->type, $storyID, 'deleted', '', ACTIONMODEL::CAN_UNDELETED);
if($story->parent > 0)
{
$this->story->updateParentStatus($story->id);