Giter Site home page Giter Site logo

Comments (6)

bradymiller avatar bradymiller commented on July 30, 2024

Thanks for this bug report.

This setting is only supposed to turn on/off the new validation method in the forms driven by the layouts engine.

It is not supposed to turn on/off the new validation method in the separate forms (such as the new encounter that ophthal pointed out), which are instead controlled by their associated entry in list_options.

(I have confirmed that this global new_validate is being used within the core validation functions, which is what is causing the bug)

@sharonco-matrix , Can your group look at this?

from openemr.

sharonco-matrix avatar sharonco-matrix commented on July 30, 2024

We will fix it!

from openemr.

bradymiller avatar bradymiller commented on July 30, 2024

Hi @sharonco-matrix ,

There appear to be 2 related PR's for this now:
#287
#288

I don't think this it is necessary to try and support 2 separate validation mechanisms in these forms, which will just be confusing; and your group's validation method is much more modern and flexible. If the entry is missing in list_options or it is turned off in list_options, then this is an error on the user's part.

The bug that needs to be fixed, though, is that all these forms(with entries in list_options) are breaking if the Administration->Globals->Security->'New Form Validation' is turned off. This flag should not affect these forms at all and should only be used to turn off/on the validation in the layout based forms.

thanks,
-brady

from openemr.

bradymiller avatar bradymiller commented on July 30, 2024

Fix for this has been posted here and is under review:
#294

from openemr.

bradymiller avatar bradymiller commented on July 30, 2024

I just committed the above linked PR which fixes this issue(thank you @sharonco-matrix for the fix). There is still a minor clean up issue in library/validation/validate_core.php, so will leave this issue open until that is addressed.

from openemr.

bradymiller avatar bradymiller commented on July 30, 2024

Minor fix has been addressed, so closing this issue.

from openemr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.