https://bugzilla.wikimedia.org/show_bug.cgi?id=59784

       Web browser: ---
            Bug ID: 59784
           Summary: Flow: display multiple error msg's of errors from the
                    same type
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Flow
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: mmul...@wikimedia.org
                CC: ebernhard...@wikimedia.org, oke...@wikimedia.org,
                    pandiculat...@gmail.com, sp...@wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---

AbstractBlock->addError() accepts $type, $message and $extra.

Error messages are saved in an array with $type as key. Adding multiple errors
of the same type will cause these errors to overwrite one another. As a result,
only tge last error-of-a-type is displayed.

Implementation idea: we can probably just add an array of errors per type
(instead of only 1 error per type) and have getErrorMessage() concatenate all
messages & have getErrorExtra() combine all extras (perhaps we have to enforce
extra to be an array here)?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to