Jump to content

Edit History

igpetru

igpetru

Hi,

Put all public static $definition in a single row.

For example:

If you have

public static $validators = array(
        'active' => array('AdminImportController', 'getBoolean'),
        'tax_rate' => array('AdminImportController', 'getPrice'),
        'price_tex' => array('AdminImportController', 'getPrice'),
        'price_tin' => array('AdminImportController', 'getPrice'),
        'reduction_price' => array('AdminImportController', 'getPrice'),
        'reduction_percent' => array('AdminImportController', 'getPrice'),
        'wholesale_price' => array('AdminImportController', 'getPrice'),
        'ecotax' => array('AdminImportController', 'getPrice'),
        'name' => array('AdminImportController', 'createMultiLangField'),
        'description' => array('AdminImportController', 'createMultiLangField'),
        'description_short' => array('AdminImportController', 'createMultiLangField'),
        'meta_title' => array('AdminImportController', 'createMultiLangField'),
        'meta_keywords' => array('AdminImportController', 'createMultiLangField'),
        'meta_description' => array('AdminImportController', 'createMultiLangField'),
        'link_rewrite' => array('AdminImportController', 'createMultiLangField'),
        'available_now' => array('AdminImportController', 'createMultiLangField'),
        'available_later' => array('AdminImportController', 'createMultiLangField'),
        'category' => array('AdminImportController', 'split'),
        'online_only' => array('AdminImportController', 'getBoolean')
    );

Move in a single row, outside of __construct function but inside of class or controller.

public static $validators = array('active' => array('AdminImportController', 'getBoolean'),'tax_rate' => array('AdminImportController', 'getPrice'), rest of code... ));
 

and uninstall will work fine

igpetru

igpetru

Hi,

Put all public static $definition in a single row.

For example:

If you have

public static $validators = array(
        'active' => array('AdminImportController', 'getBoolean'),
        'tax_rate' => array('AdminImportController', 'getPrice'),
        'price_tex' => array('AdminImportController', 'getPrice'),
        'price_tin' => array('AdminImportController', 'getPrice'),
        'reduction_price' => array('AdminImportController', 'getPrice'),
        'reduction_percent' => array('AdminImportController', 'getPrice'),
        'wholesale_price' => array('AdminImportController', 'getPrice'),
        'ecotax' => array('AdminImportController', 'getPrice'),
        'name' => array('AdminImportController', 'createMultiLangField'),
        'description' => array('AdminImportController', 'createMultiLangField'),
        'description_short' => array('AdminImportController', 'createMultiLangField'),
        'meta_title' => array('AdminImportController', 'createMultiLangField'),
        'meta_keywords' => array('AdminImportController', 'createMultiLangField'),
        'meta_description' => array('AdminImportController', 'createMultiLangField'),
        'link_rewrite' => array('AdminImportController', 'createMultiLangField'),
        'available_now' => array('AdminImportController', 'createMultiLangField'),
        'available_later' => array('AdminImportController', 'createMultiLangField'),
        'category' => array('AdminImportController', 'split'),
        'online_only' => array('AdminImportController', 'getBoolean')
    );

Move in a single row

public static $validators = array('active' => array('AdminImportController', 'getBoolean'),'tax_rate' => array('AdminImportController', 'getPrice'), rest of code... ));
 

and uninstall will work fine

igpetru

igpetru

Hi,

Put all public static $definition in a single row.

For example:

If you have

public static $validators = array(
        'active' => array('AdminImportController', 'getBoolean'),
        'tax_rate' => array('AdminImportController', 'getPrice'),
        /** Tax excluded */
        'price_tex' => array('AdminImportController', 'getPrice'),
        /** Tax included */
        'price_tin' => array('AdminImportController', 'getPrice'),
        'reduction_price' => array('AdminImportController', 'getPrice'),
        'reduction_percent' => array('AdminImportController', 'getPrice'),
        'wholesale_price' => array('AdminImportController', 'getPrice'),
        'ecotax' => array('AdminImportController', 'getPrice'),
        'name' => array('AdminImportController', 'createMultiLangField'),
        'description' => array('AdminImportController', 'createMultiLangField'),
        'description_short' => array('AdminImportController', 'createMultiLangField'),
        'meta_title' => array('AdminImportController', 'createMultiLangField'),
        'meta_keywords' => array('AdminImportController', 'createMultiLangField'),
        'meta_description' => array('AdminImportController', 'createMultiLangField'),
        'link_rewrite' => array('AdminImportController', 'createMultiLangField'),
        'available_now' => array('AdminImportController', 'createMultiLangField'),
        'available_later' => array('AdminImportController', 'createMultiLangField'),
        'category' => array('AdminImportController', 'split'),
        'online_only' => array('AdminImportController', 'getBoolean')
    );

Move in a single row

public static $validators = array('active' => array('AdminImportController', 'getBoolean'),'tax_rate' => array('AdminImportController', 'getPrice'), rest of code... ));
 

and uninstall will work fine

igpetru

igpetru

Hi,

Put all public static $definition in a single row.

For example:

If you have

public static $validators = array(
        'active' => array('AdminImportController', 'getBoolean'),
        'tax_rate' => array('AdminImportController', 'getPrice'),
        /** Tax excluded */
        'price_tex' => array('AdminImportController', 'getPrice'),
        /** Tax included */
        'price_tin' => array('AdminImportController', 'getPrice'),
        'reduction_price' => array('AdminImportController', 'getPrice'),
        'reduction_percent' => array('AdminImportController', 'getPrice'),
        'wholesale_price' => array('AdminImportController', 'getPrice'),
        'ecotax' => array('AdminImportController', 'getPrice'),
        'name' => array('AdminImportController', 'createMultiLangField'),
        'description' => array('AdminImportController', 'createMultiLangField'),
        'description_short' => array('AdminImportController', 'createMultiLangField'),
        'meta_title' => array('AdminImportController', 'createMultiLangField'),
        'meta_keywords' => array('AdminImportController', 'createMultiLangField'),
        'meta_description' => array('AdminImportController', 'createMultiLangField'),
        'link_rewrite' => array('AdminImportController', 'createMultiLangField'),
        'available_now' => array('AdminImportController', 'createMultiLangField'),
        'available_later' => array('AdminImportController', 'createMultiLangField'),
        'category' => array('AdminImportController', 'split'),
        'online_only' => array('AdminImportController', 'getBoolean'),
    );

Move in a single row

public static $validators = array('active' => array('AdminImportController', 'getBoolean'),'tax_rate' => array('AdminImportController', 'getPrice'),'price_tex' => array('AdminImportController', 'getPrice'),'price_tin' => array('AdminImportController', 'getPrice'),'reduction_price' => array('AdminImportController', 'getPrice'),'reduction_percent' => array('AdminImportController', 'getPrice'),'wholesale_price' => array('AdminImportController', 'getPrice'),'ecotax' => array('AdminImportController', 'getPrice'),'name' => array('AdminImportController', 'createMultiLangField'),'description' => array('AdminImportController', 'createMultiLangField'),'description_short' => array('AdminImportController', 'createMultiLangField'),'meta_title' => array('AdminImportController', 'createMultiLangField'),'meta_keywords' => array('AdminImportController', 'createMultiLangField'),'meta_description' => array('AdminImportController', 'createMultiLangField'),'link_rewrite' => array('AdminImportController', 'createMultiLangField'),'available_now' => array('AdminImportController', 'createMultiLangField'),'available_later' => array('AdminImportController', 'createMultiLangField'),'category' => array('AdminImportController', 'split'),'online_only' => array('AdminImportController', 'getBoolean'));
 

and uninstall will work fine

×
×
  • Create New...