<field name="myintegervalue" type="integer" default="Some integer" label="Choose an integer" description="" first="1" last="99999" step="1" />
No memory limit error.
The following error hapens:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 80 bytes) in /joomla/libraries/cms/html/select.php on line 495
Issue was discovered in the custom fields project joomla-projects/custom-fields#120.
Also another option is to use HTML5 form validation options
but currently joomla makes it hard to use this
Still, i think, adding an input validation masking JS library is best choice
Category | ⇒ | Fields |
Labels |
Added:
?
|
Status | New | ⇒ | Confirmed |
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-08-03 16:48:56 |
Closed_By | ⇒ | brianteeman |
I am going to close this as no one would ever be creating an integer field like that
if the field is used like that then you will have
so 128 MBytes of memory being exhausted is expected
i think the field was never intended to be used like this, best policy is to disallow such usage,
then also introduce a new JS validation type "integer"
Finally probably it is time that Joomla added an input validation masking JS library, i am sure this will be added eventually, it is just being delayed