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

       Web browser: ---
            Bug ID: 51063
           Summary: "pages" property does not allow for integers and
                    arrays of integers
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: BookManagerv2
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

The code that I took from EventLogging only allows arrays to contain one type
of value. The "pages" property should allow for something like the following:

[2, [5,8]]

This would indicate that the section included pages 2, 5, 6, 7, 8. 

Right now the validation either allows only numbers, which would require the
JSON to be formatted:

[2, 5, 6, 7, 8]

or only arrays, which would require the JSON to be formatted:

[[2], [5,8]]

Both of these seem a little silly, so it seems like it would be worth adjusting
the code to allow for more than one type of value, and, ideally, pushing the
changes back to EventLogging as well.

-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to