Jump to content

Helper list - bool type not work together with callback


SupuS

Recommended Posts

Hi,

I would like to modify admin order list. I use this code for display column:

'test' => array(
                'title' => $this->l('Test'),
                'type' => 'bool',
                'orderby' => false,
                'havingFilter' => false,
                'remove_onclick' => true,
                'callback' => 'forTest',
                'icon' => array(
                    1 => array(
                        'src' => 'test.png',
                        'alt' => $this->l('Alt test'),
                    )
                ),
            ),

and this function:

public function forTest($test, $tr)
{
  return true;
}

But the column contains value "1" instead of icon. When I remove calback function with using value from db select than icon is showed correctly. Is there a way to use bool, callback and icon together?

Thanks for any idea.

Link to comment
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
×
×
  • Create New...