Editor with closure and or_where clause does not work

Editor with closure and or_where clause does not work

fabioberettafabioberetta Posts: 74Questions: 23Answers: 4
edited December 2015 in Editor

Dear all,

I am using the inline editor to change the database value via a checkbox.

It works fine unless I use the closure with an or_where clause. This is the clause that create the problem.

->where( function ( $r ) { 
            $r->or_where('cl.account_id', $_SESSION['account_id'] );
        } )

When I use this clause if I click on the checkbox it does not work. It does not change the state and does not call the php web service.

I get no error code in the console.

Any reason for that?

ty
f

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    You noted that it doesn't call the web-service. It is presumably the client side which calls the web service, so I'm not clear why a PHP where statement would effect that. Can you link to the page?

    Thanks,
    Allan

This discussion has been closed.