From 98bbf73ed6d9f54ebdb3bd62ba1df558d759871a Mon Sep 17 00:00:00 2001 From: daitingting Date: Tue, 25 Apr 2023 16:00:23 +0800 Subject: [PATCH] * Fix bug #34678. --- module/pivot/model.php | 2 +- module/screen/model.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/pivot/model.php b/module/pivot/model.php index 03864219c4..c5aa993ce5 100644 --- a/module/pivot/model.php +++ b/module/pivot/model.php @@ -1916,7 +1916,7 @@ class pivotModel extends model case 'option': if($field) { - $path = $this->app->getExtensionRoot() . 'biz' . DS . 'dataview' . DS . 'table' . DS . "$object.php"; + $path = $this->app->getModuleRoot() . 'dataview' . DS . 'table' . DS . "$object.php"; include $path; $options = $schema->fields[$field]['options']; diff --git a/module/screen/model.php b/module/screen/model.php index 4a36396a6e..7fd730f7b4 100644 --- a/module/screen/model.php +++ b/module/screen/model.php @@ -745,7 +745,7 @@ class screenModel extends model case 'option': if($field) { - $path = $this->app->getExtensionRoot() . 'biz' . DS . 'dataview' . DS . 'table' . DS . "$object.php"; + $path = $this->app->getModuleRoot() . 'dataview' . DS . 'table' . DS . "$object.php"; include $path; $options = $schema->fields[$field]['options'];