Error double checkbox

Error double checkbox

antoniocibantoniocib Posts: 201Questions: 41Answers: 1

Hi guys, i want implement new checkbox in my table but i have this error:

i tried to move the "comma" to another place but i can't fix it, maybe i made another mistake ?!

        Field::inst( 'hub' )
            ->setFormatter( function ( $val, $data, $opts ) {
                            return ! $val ? 0 : 1;
                    } )
            ), ---------------> line 112
        Field::inst( 'active' )
        ->setFormatter( function ( $val, $data, $opts ) {
                    return ! $val ? 0 : 1;
            } )
    )

This question has an accepted answers - jump to answer

Answers

  • tangerinetangerine Posts: 2,817Questions: 22Answers: 330
    Answer ✓
        Field::inst( 'hub' )
            ->setFormatter( function ( $val, $data, $opts ) {
                            return ! $val ? 0 : 1;
                    } ),
        Field::inst( 'active' )
    ...
    
  • antoniocibantoniocib Posts: 201Questions: 41Answers: 1

    Okay i'm stupid thanks man!

Sign In or Register to comment.