From 127dc4f0e1f9e88a12a33c07391355d8e28f7f9d Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Tue, 5 Apr 2016 16:06:09 +0200 Subject: [PATCH] Use correct ID when copying package --- h5p.classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5p.classes.php b/h5p.classes.php index 23db57d..4badcc6 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -1468,7 +1468,7 @@ class H5PStorage { * The main id of the new content (used in frameworks that support revisioning) */ public function copyPackage($contentId, $copyFromId, $contentMainId = NULL) { - $this->h5pC->fs->cloneContent($contentId, $newContentId); + $this->h5pC->fs->cloneContent($copyFromId, $contentId); $this->h5pF->copyLibraryUsage($contentId, $copyFromId, $contentMainId); } }