contao/test — Issue #2921: 2.9.4 Code Editor in the Template Editor Module
Author: importer
Created: 2011-11-29 10:33:29+00:00
State: open
Labels: Defect, tpl_editor

I think there is a bug in system/config/editArea.php that only affects new installs.

It looks like this was added in the most recent version, I'm thinking so you can have more than one code editor on the page at once:

```
ceFields as $strField): ?>
```

However, it looks like when you are in the template editor, $this->ceFields does not exist, and it errors out instead.

As a temporary solution, this seemed to work instead:

```
ceFields ? $this->ceFields : array($this->ceField) as $strField): ?>
```

**Error Message:**

```
Warning: Invalid argument supplied for foreach() in /share/www/__php/sandboxes/clean294/system/config/editArea.php on line 102
```

Thank you!

Related issues: #2945

--- _Originally created by Medianomaly on March 10th, 2011, at 09:36pm (ID 2922)_