From: soufiane Date: Mon, 14 Oct 2024 16:07:26 +0000 (+0200) Subject: wait #7116 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f10e93330e12d626116ce4197be1e2ce00d56380;p=pmi.git wait #7116 --- 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;