Jump to content

[Gelöst] Feldlänge FeatureValue ändern


andreasnrw

Recommended Posts

Hallo,

ich bekomme immer die Fehlermeldung

*ERROR*  2018/12/10 - 07:22:32: Property FeatureValue->value length (351) must be between 0 and 255 at line 954 in file classes/ObjectModel.php

Kann man die Feldlänge ändern? Wenn ja wo wird das denn gemacht.

Prestashop  1.6.1.10

Andreas

 

Edited by andreasnrw (see edit history)
Link to comment
Share on other sites

Ich habe mir das mal angeschaut, in der

/classes/ FeatureValue.php

findest du ca bei Zeile 40:

public static $definition = array(
        'table' => 'feature_value',
        'primary' => 'id_feature_value',
        'multilang' => true,
        'fields' => array(
            'id_feature' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
            'custom' =>    array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),

            /* Lang fields */
            'value' =>        array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 255),
        ),
    );

'size' => 255

änderst du entsprechend ab!

Am besten machst du ein override davon und speicherst es ab:

override/classes/FeatureValue.php

Und nicht vergessen die Datei

/cache/class_index.php zu löschen!!!

Grüsse
Whiley

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...