ValidateOptions class construct method has a possible bug with the empty option

ValidateOptions class construct method has a possible bug with the empty option

csdatumcsdatum Posts: 30Questions: 10Answers: 0

When passing an $opts array to the construct method for the ValidateOptions class we are receiving the following error:

Call to undefined method DataTables\Editor\ValidateOptions::empty() in <path>\datatables\php\Editor\Validate\Options.php on line 30

We are moving from version 1.6.x to 1.7.4 and I believe the error has exists in all 1.7.x versions. Perhaps line 30 of the mentioned file should call the allowEmpty method?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,985Questions: 1Answers: 10,162 Site admin
    Answer ✓

    Thank you - you are absolutely correct. Apologies for the error - the fix has been committed and will be in the next release. The change you have suggested is the correct one until then.

    Regards,
    Allan

This discussion has been closed.