Customer preference "multiple" = yes

Moderator: crythias

Locked
jmontoya
Znuny newbie
Posts: 9
Joined: 26 Apr 2012, 13:59
Znuny Version: 3.0.1
Real Name: Julio Montoya
Company: BeezNest

Customer preference "multiple" = yes

Post by jmontoya »

I created a new PreferencesGeneric file called PreferencesGenericMultiple this page saves a customer preference when using a select multiple.

I also created a PreferencesGenericDate in order to parse date values.

It saves the data in the customer_preference DB like this: email;telephone;fax
custom_preferences.png
You just have to add something like this:
see the

<Item Key="Multiple">yes</Item>

and the

Code: Select all

                <Item Key="Module">Kernel::Output::HTML::PreferencesGenericMultiple</Item>

Code: Select all

<ConfigItem Name="CustomerPreferencesGroups###mode_recolte" Required="0" Valid="1">
        <Description Translatable="1">Mode de récolte d'infos</Description>
        <Group>Usager</Group>
        <SubGroup>Info de base</SubGroup>
        <Setting>
            <Hash>
                <Item Key="Module">Kernel::Output::HTML::PreferencesGenericMultiple</Item>
                <Item Key="Column">Other Settings</Item>
                <Item Key="Label" Translatable="1">Mode de récolte d'infos</Item>
                <Item Key="Key" Translatable="1">Mode de récolte d'infos</Item>                 
                <Item Key="DataSelected">rdv</Item>
                <Item Key="PrefKey">mode_recolte</Item>
                <Item Key="Prio">5002</Item>
                <Item Key="Active">1</Item>
                <Item Key="Data">
                    <Hash>
                        <Item Key="phone">Telephone</Item>
                        <Item Key="fax">Fax</Item>
                    </Hash>
                </Item>
                <Item Key="Multiple">yes</Item>
            </Hash>
        </Setting>
    </ConfigItem>
Where can I commit those changes?
You do not have the required permissions to view the files attached to this post.
Locked