Search

How is an event filter supposed to display it's errors? I assumed it would be as straightforward as setting $context['errors'] = Array($type, $status, $message);, but the errors array is never actually used anywhere after that..

If I add

            if(is_array($filter_errors) && !empty($filter_errors)){
                foreach($filter_errors as $fr){
                    list($type, $status, $message) = $fr;
                    $result->appendChild(buildFilterElement($type, ($status ? 'passed' : 'failed'), $message));
                }
            }

to event.section.php at line 323, everything works as expected.

Should I send a pull request for this?

Ah, thanks brendo, should have looked before I asked.

No need to apologise, I committed after I saw this post.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details