Jump to content

Click to change boolean value in list view not update


Tje123
 Share

Recommended Posts

Im developing carrier module.in my backoffice i have bool value.

in my field list like below 

public function renderList() {
        $this->addRowAction('edit');
        $this->addRowAction('delete');
        $this->bulk_actions = [
            'delete' => [
                'text' => $this->l('Delete selected'),
                'confirm' => $this->l('Delete selected items?')
            ]
        ];
        $this->fields_list = [

        'availability' => [
                'title' => $this->l('Availability'),
                'width' => 90,
                'active' => 'Availability',
                'type' => 'bool',
                'orderby' => FALSE
            ],

]

 

in my class i have define it like below

  public $availability=true;

 

when i click on the `red cross` it's not updating.

 

Screenshot from 2017-11-01 13-40-09.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More