question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Group argument in validation is null when calling 'setRules'

See original GitHub issue

Hi,

I have an issue, after update to latest version of this plugin, with setting rules. After declare and fill with filters is ok, but the problem is when I just call : $('#ruleGenerator1').queryBuilder('setRules', {"condition":"AND","rules":[{"id":"8","field":"8","operator":"greater","value":["1"],"not":false}]});

then in console

querybuilder

Any ideas what I’m doing wrong or how to fix it?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mistic100commented, May 28, 2018

Don’t you have a listener tha call “getRules” on the “rulesChanged” event ? You must disable it when calling “setRules”.

0reactions
yanielbfcommented, May 4, 2019

Is this issue fixed??? I have some trouble. Help me please!!!. Greeting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does set_rules() method in CodeIgniter give error?
It seems that the Form_validation library doesn't load where you placed it. I'll suggest you place it in your class construct or just ......
Read more >
Validation — CodeIgniter 4.2.11 documentation - GitHub Pages
Both the setRule() and setRules() methods can accept an array of custom messages that will be used as errors specific to each field...
Read more >
The Data Validation Cookbook
The first argument of exists_one() is a rule that has to be checked in every group indicated by the by argument. The output...
Read more >
Form Validation — CodeIgniter 3.1.13 documentation
Using a text editor, create a controller called Form.php. In it, place this code and save ... To set validation rules you will...
Read more >
Chapter 5. Grouping constraints - Red Hat on GitHub
The last validate() call finally shows that all constraints are passing by validating against all defined groups. 5.2. Defining group sequences. By default, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found