FriendsOfREDAXO / mblock

Beliebig viele Datenblöcke innerhalb eines Moduls, per Drag & Drop verschiebbar.
MIT License
81 stars 10 forks source link

Mblock 3.1.0 - in REDAXO 5.12.1 - ParseError Invalid indentation - tabs and spaces cannot be mixed #138

Closed steri-rex closed 3 years ago

steri-rex commented 3 years ago

ParseError Invalid indentation - tabs and spaces cannot be mixed - bei:


// base ID
$id = 1;

$listitems = '';$db = rex_sql::factory();
$sql = "SELECT name FROM rex_media_manager_type WHERE name LIKE 'bild%' ORDER BY id";
$result = $db->getArray($sql);
                    foreach($result as $r){
                        // selected passiert durch mblock addon
                        $listitems .=  '<option value="'.$r['name'].'" >'.$r['name'].'</option>';
                    };

// html form
$form = <<<EOT
    <div class="form-group">
   <label class="col-sm-2 " for="headline-level">Bildausschnitt</label>            
<div class="col-sm-10">
                <select name="REX_INPUT_VALUE[$id][0][bild_ausschnitt]" class="form-control ">
EOT;

$form .= $listitems;              

$form .= <<<EOT
            </select>
            </div>
    </div>    <div class="form-group">
      <label class="col-sm-2 control-label" for="headline-level">Name</label>
      <div class="col-sm-10">
        <input class="form-control" type="text" name="REX_INPUT_VALUE[$id][0][name]" value="">
      </div>
    </div>EOT;
// parse form

echo MBlock::show($id, $form);     

?>```
steri-rex commented 3 years ago

@joachimdoerr - hättest Du eine Idee was es da hat?

steri-rex commented 3 years ago

unter Redaxo 5.12.0 und MBlock 3.1.0 hat das noch funktioniert - muss also mit einer Core Änderung von Redaxo zu tun haben