juergenweb / FrontendForms

A module for ProcessWire CMS to create and validate forms on the frontend easily using the Valitron library.
MIT License
15 stars 1 forks source link

Using `Markup` input class causes error #16

Closed donatasben closed 4 weeks ago

donatasben commented 1 month ago

Hi @juergenweb, here I am again with a bug report :) I believe in one of newer than 2.2.3 versions Markup element stopped working: SCR-20240829-rzkb

As I understand it get's called a method as any other input, but it doesn't have that method implemented, so it errors out. My quick and dirty fix was to make Markup class extend TextElements or Element class and that makes the error go away, as it gets recognised as not an input then.

class Markup extends Element {...
// or
class Markup extends TextElements {...

But an official bugfix would make sure it's properly done. Have a great day!

juergenweb commented 4 weeks ago

Hello @donatasben

Thanks for reporting another issue. I have fixed it now and it will be included in the next update (changelog.md), so I close this issue now.