FriendsOfREDAXO / mblock

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

addMedialistField bug in Mblock #146

Closed marcohanke closed 2 years ago

marcohanke commented 2 years ago

Moin Joachim, ich nutze seit Ewigkeiten $mblock->addMedialistField(1, array('label' => 'Bilder')); in Mblock. Das hat immer gut funktioniert. Jetzt ist im Slack aufgefallen dass in aktuellen Versionen das ganze nur ab 2 Blöcken funktioniert. Mit einem Block wird der Medienpool nicht geöffnet. Bei Rex 5.11.0 Mblock 3.1.0 Mform 5.3.1 funktioniert es noch tadellos. ich kanns nicht nachvollziehen leider ;-(

marcohanke commented 2 years ago

@joachimdoerr Ich habs isoliert. Alle Updates laufen, der Fehler tritt auf beim aktualisieren auf Redaxo 5.13.0

eaCe commented 2 years ago

@marcohanke hast du die aktuelle mblock version getestet, 3.1.0 ist ja schon was älter? Soweit ich mich erinnere hatten wir dieses Problem und @skerbis hat das hier gefixed: https://github.com/FriendsOfREDAXO/mblock/releases/tag/3.4.1 Alternativ könnte das Problem dann in mform liegen

marcohanke commented 2 years ago

Hey @eaCe Ich hab es mit allerlei Versionen probiert, natürlich auch mit den aktuellsten Versionen. Es funktionieren alle Versionen nur nach Update auf Rex 5.13.0 funktioniert nichts mehr.

skerbis commented 2 years ago

https://github.com/FriendsOfREDAXO/mblock/commit/a78926c4798bf84e5a81bee267b6ae0b767d20dd

eaCe commented 2 years ago

@skerbis man, gerade habe ich es auch gefunden... :) https://github.com/FriendsOfREDAXO/mblock/blob/master/lib/MBlock/Replacer/MBlockSystemButtonReplacer.php#L178