Error double checkbox

Error double checkbox

antoniocibantoniocib Posts: 277Questions: 62Answers: 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: 3,350Questions: 37Answers: 394
    Answer ✓
        Field::inst( 'hub' )
            ->setFormatter( function ( $val, $data, $opts ) {
                            return ! $val ? 0 : 1;
                    } ),
        Field::inst( 'active' )
    ...
    
  • antoniocibantoniocib Posts: 277Questions: 62Answers: 1

    Okay i'm stupid thanks man!

This discussion has been closed.