From 01de23b3b46262efd4028a275e587643154e99c4 Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Fri, 9 Apr 2021 10:33:42 +0800 Subject: [PATCH] * Fix bug#11832. --- module/doc/control.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/doc/control.php b/module/doc/control.php index ef8daa8ea6..58695a06d2 100644 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -221,7 +221,12 @@ class doc extends control $objectType = 'project'; $objectID = $execution->project; } + if($objectType == 'project' and $this->post->project) $objectID = $this->post->project; + if($objectType == 'product' and $this->post->product) $objectID = $this->post->product; + if($objectType == 'custom' or $objectType == 'book') $objectID = 0; + $this->action->create('docLib', $libID, 'Created'); + die(js::locate($this->createLink('doc', 'objectLibs', "type=$objectType&objectID=$objectID&libID=$libID"), 'parent.parent')); } else