From 4e2cda3a82dd19a85f349bfa3ca598f9813d7932 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Wed, 24 Nov 2021 11:26:43 +0800 Subject: [PATCH] * Fix an error for edit story. --- module/story/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/control.php b/module/story/control.php index 12fc0692e8..69fefb222f 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -655,7 +655,7 @@ class story extends control } else { - $branches = $product->type != 'normal' ? $this->loadModel('branch')->getPairs($productID, 'active') : array(); + $branches = $product->type != 'normal' ? $this->loadModel('branch')->getPairs($product->id, 'active') : array(); } $this->story->replaceURLang($story->type);