Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8"?>
<otrs_config version="1.0" init="Config">
<ConfigItem Name="GenericInterface::Operation::Module###Ticket::TicketHistoryGet" Required="0" Valid="1">
<Description Translatable="1">GenericInterface module registration for the operation layer.</Description>
<Group>GenericInterface</Group>
<SubGroup>GenericInterface::Operation::ModuleRegistration</SubGroup>
<Setting>
<Hash>
<Item Key="Name">TicketHistoryGet</Item>
<Item Key="Controller">Ticket</Item>
@reneeb
reneeb / optgroup.html
Created October 28, 2016 12:10
Optgroup
<html>
<head>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
</head>
<body>
<select id="s1">
<optgroup label="en">
<option value="1">en1</option>
<option value="2">en2</option>
</optgroup>
@reneeb
reneeb / SearchFields - Customer
Created October 21, 2016 08:55
SearchFields - Customer
$Self->{CustomerUser}->{CustomerUserSearchFields} = [ 'login', 'first_name', 'last_name', 'customer_id', 'fax', 'CONCAT( first_name, " ", last_name )' ];
{
Key => 'CronData',
Name => 'Cron data',
Searchable => 1,
Input => {
Type => 'Text',
Size => 50,
MaxLength => 50,
Required => 1,
},
# --
# Kernel/System/PostMaster/Filter/CustomerByPhone.pm - the global PostMaster module for OTRS
# Copyright (C) 2016 Perl-Services.de, http://perl-services.de
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
package Kernel::System::PostMaster::Filter::CustomerByPhone;
#!/usr/bin/perl
use 5.010;
use strict;
use warnings;
use Net::LDAP;
use Net::LDAP::Entry;
my ($server,$bindDn,$password) = ('127.0.0.1', 'cn=root,c=de', 'secret');
<?xml version="1.0" encoding="utf-8"?>
<otrs_config version="1.0" init="Config">
<ConfigItem Name="AutoResponseNoCustomerCc" Required="1" Valid="1">
<Description Translatable="1">If this option is set to 'Yes', the customer won't be added to the Cc recipients for auto responses.</Description>
<Group>Ticket</Group>
<SubGroup>Core::PostMaster</SubGroup>
<Setting>
<Option SelectedID="0">
<Item Key="0" Translatable="1">No</Item>
<Item Key="1" Translatable="1">Yes</Item>
<?xml version="1.0" encoding="utf-8"?>
<otrs_config version="1.0" init="Config">
<ConfigItem Name="DashboardBackend###0123-TicketSAPQueue" Required="0" Valid="1">
<Description Translatable="1">Parameters for the dashboard backend of the new tickets overview of the agent interface. "Limit" is the number of entries shown by default. "Group" is used to restrict the access to the plugin (e. g. Group: admin;group1;group2;). "Default" determines if the plugin is enabled by default or if the user needs to enable it manually. "CacheTTLLocal" is the cache time in minutes for the plugin. Note: Only Ticket attributes and Dynamic Fields (DynamicField_NameX) are allowed for DefaultColumns. Possible settings: 0 = Disabled, 1 = Available, 2 = Enabled by default.</Description>
<Group>Ticket</Group>
<SubGroup>Frontend::Agent::Dashboard</SubGroup>
<Setting>
<Hash>
<Item Key="Module">Kernel::Output::HTML::Dashboard::TicketGeneric</Item>
<Item Key=
#!/usr/bin/perl
use v5.010;
use strict;
use warnings;
use CLDR::Number;
my $cldr = CLDR::Number->new( locale => 'es-ar' ); # Argentina