vanilla-thunder / oxid-module-tinymce

TinyMCE + Roxy Filemanager for OXID eShop CE 4.7 - 4.10
GNU General Public License v3.0
20 stars 13 forks source link

Typo in ViewConfig::class #23

Open jsiemon-edv opened 3 years ago

jsiemon-edv commented 3 years ago

Class "ViewConfig" in "VanillaThunder\TinymceModule\Application\Core" has a typo in it, which renders the shops frontend page when selecting the backend module "CMS-Pages" instead of the "new element view". Existing elements in the list are no longer selectable.

Line 36 reads:

if ($sCoreTableName === "oxcontents" && !in_array($oEditObject->getLoadUd(), $aPlainCmsPages)) {

should be:

if ($sCoreTableName === "oxcontents" && !in_array($oEditObject->getLoadId(), $aPlainCmsPages)) {

Notice call to function "getLoadUd", which should be "getLoadId"...