Bug Report: Editor 1.6.1 Validator Decimal

Bug Report: Editor 1.6.1 Validator Decimal

btreebtree Posts: 99Questions: 14Answers: 11

Hello,

I get following error since Update:

[02-Jan-2017 18:53:19 Europe/Berlin] PHP Notice:  Undefined index: decimal in app/libs/Editor/php/Editor/Validate.php on line 438
[02-Jan-2017 18:53:19 Europe/Berlin] PHP Notice:  Undefined index: decimal in app/libs/Editor/php/Editor/Validate.php on line 473
[02-Jan-2017 18:53:19 Europe/Berlin] PHP Notice:  Undefined index: decimal in app/libs/Editor/php/Editor/Validate.php on line 474

Thanks!

Cheers
Hannes

Replies

  • btreebtree Posts: 99Questions: 14Answers: 11
    edited January 2017

    Fixed it by declaring for my numeric validations the decimal option. So it seems the code does not set standard option '.' for decimal.

    Edit: only needed by minMax Validate, numeric is working

    Cheers
    Hannes

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin

    Thanks! maxNum also suffered from this issue. It will be in the 1.6.2 release.

    Regards,
    Allan

  • drewturkdrewturk Posts: 27Questions: 8Answers: 0
    edited January 2017

    Thank you. I also fixed for minNum by also declaring a default option 'decimal' => ".":

    $cfg = Validate::_extend( $opts, 'min', array(
                'message' => "Number is too small, must be ".$min." or larger",
                'decimal' => "."
            ) );
    

    when is 1.6.2 due for release?

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin

    During February. I don't have an exact date for it yet though I'm afraid. It depends on timings of a few other things (I'm relocating office for example!).

    Regards,
    Allan

  • pcpartnerpcpartner Posts: 6Questions: 2Answers: 0

    Seems it is still an issue? Is it possible?

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin

    I'm afraid this is still present in the current 1.6.1 release. However I'm working on 1.6.2 at the moment and hope to be able to package it up and release it later this week.

    Regards,
    Allan

  • admanenteadmanente Posts: 7Questions: 2Answers: 1

    Did you fix the minMax validation issue? I'm working with DataTables Editor v1.6.3 but seems is not working properly

This discussion has been closed.