From f10e93330e12d626116ce4197be1e2ce00d56380 Mon Sep 17 00:00:00 2001 From: soufiane Date: Mon, 14 Oct 2024 18:07:26 +0200 Subject: [PATCH] wait #7116 --- app/SubForms/News.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/SubForms/News.php b/app/SubForms/News.php index d15498f..bda9d51 100644 --- a/app/SubForms/News.php +++ b/app/SubForms/News.php @@ -46,7 +46,7 @@ class News extends SubForm $this->addField(['name' => 'page_product', 'label' => 'Page produit', 'type' => 'SelectFromArray', - 'options' => self::getDataByModel('catalog_products'), + 'options' => self::getDataByTable('catalog_products'), 'multiple' => false, 'default' => '' ]); @@ -54,19 +54,19 @@ class News extends SubForm $this->addField(['name' => 'page_page', 'label' => 'Page generale', 'type' => 'SelectFromArray', - 'options' => self::getDataByModel('cubist_cms_pages'), + 'options' => self::getDataByTable('cubist_cms_pages'), 'multiple' => false, ]); $this->addField(['name' => 'page_news', 'label' => 'Page actualités', 'type' => 'SelectFromArray', - 'options' => self::getDataByModel('cubist_news'), + 'options' => self::getDataByTable('cubist_news'), 'multiple' => false, ]); } - public function getDataByModel($table) { + public function getDataByTable($table) { $column = 'title'; $local = request()->query('locale') ?? $this->defaultLang; -- 2.39.5