* Fix bug #14722.
This commit is contained in:
@@ -395,7 +395,7 @@ class commonModel extends model
|
||||
$iconWord = $objectType == 'doc' ? 'W' : ''; // No ducument icon, print word instead of icon.
|
||||
|
||||
$params = '';
|
||||
if($objectType == 'bug' or $objectType == 'testcase') $params = "productID=$productID";
|
||||
if(strpos('bug|testcase|story', $objectType) !== false) $params = "productID=$productID";
|
||||
if($objectType == 'doc') $params = "objectType=&objectID=0&libID=0";
|
||||
|
||||
$html .= '<li>' . html::a(helper::createLink($objectType, $createMethod, $params, '', $isOnlyBody), "<i class='icon icon-$objectIcon'>$iconWord</i> " . $lang->createObjects[$objectType], '', $isOnlyBody ? "class='iframe'" : '') . '</li>';
|
||||
|
||||
@@ -48,6 +48,8 @@ class story extends control
|
||||
*/
|
||||
public function create($productID = 0, $branch = 0, $moduleID = 0, $storyID = 0, $objectID = 0, $bugID = 0, $planID = 0, $todoID = 0, $extra = '', $type = 'story')
|
||||
{
|
||||
if($productID == 0) $this->locate($this->createLink('product', 'create'));
|
||||
|
||||
$this->story->replaceURLang($type);
|
||||
if($this->app->tab == 'product')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user