* Adjust import to asset lib.

This commit is contained in:
holan20180123
2021-06-25 16:29:59 +08:00
parent eba2dbfaab
commit 1d600ede32
+6
View File
@@ -3291,6 +3291,12 @@ class storyModel extends model
if($action == 'batchcreate' and $story->type == 'requirement' and $story->status != 'closed') return $story->status != 'draft';
if($action == 'batchcreate' and ($story->status != 'active' or $story->stage != 'wait')) return false;
if($action == 'importtolib')
{
$hasExisted = $app->dbh->query("select id from " . TABLE_STORY . " where fromStory=$story->id and fromVersion=$story->version")->fetch();
if($hasExisted) return false;
}
return true;
}