* Adjust code.
This commit is contained in:
@@ -32,6 +32,7 @@ class storyModel extends model
|
||||
$story->title = isset($spec->title) ? $spec->title : '';
|
||||
$story->spec = isset($spec->spec) ? $spec->spec : '';
|
||||
$story->verify = isset($spec->verify) ? $spec->verify : '';
|
||||
if(!empty($story->fromStory)) $story->sourceName = $this->dao->select('title')->from(TABLE_STORY)->where('id')->eq($story->fromStory)->fetch('title');
|
||||
|
||||
/* Check parent story. */
|
||||
if($story->parent > 0) $story->parentName = $this->dao->findById($story->parent)->from(TABLE_STORY)->fetch('title');
|
||||
|
||||
Reference in New Issue
Block a user