I got it working. Thanks Gerald!
From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Gerald Young
Sent: Tuesday, January 25, 2011 11:49 AM
To: User questions and discussions about OTRS.
Subject: Re: [otrs] Anyone know how to make a field mandatory?
You need the ENTIRE section of $Self->{CustomerUser} = {
all the way to before the comment
#CustomerUser
which relates to LDAP.
On Tue, Jan 25, 2011 at 9:39 AM, Navarro, Daniel mailto:Daniel.Navarro@gtech.com> wrote:
Thanks Gerald. I really appreciate the help.
I've looked at /opt/otrs/Kernel/Config/Defaults.pm and I see the line you suggested I change:
[ 'UserPhone', 'Phone', 'phone', 1, 1, 'var', '', 0 ],
Am I correct in my understanding that I am supposed to cut a chunk out of the Defaults.pm file and put it into the /opt/otrs/Kernel/Config.pm file which currently does not have any of this info? That is what I'm assuming I need to do but I can't quite figure out what lines I should start and stop the cut and paste.
I notice your snippet starts with
$Self->{CustomerUser} = {
Which is not currently in my Config.pm file so I'm assuming that is the first line I should enter into Config.pm somewhere between "Start your custom configs here!!!" and "End your custom configs here!!!"
Am I on the right track here? I pasted a section that I thought would work from Defaults.pm into Config.pm and then my OTRS web page stopped working. Then I tried to stop and restart Apache and it failed to start. I guess I should revert the change back. Does it matter if I left a backup copy of Config.pm in the same directory? It is named ConfigDOTpm.ORIGINAL and it is owned by root.
I entered the text starting with $Self->{CustomerUser} = {
# ---------------------------------------------------- #
# data inserted by installer #
# ---------------------------------------------------- #
# $DIBI$
$Self->{'DefaultCharset'} = 'utf-8';
$Self->{CustomerUser} = { <--This is the first line I entered
Map => [
# note: Login, Email and CustomerID needed!
# var, frontend, storage, shown (1=always,2=lite), required, storage-type, http-link, readonly, http-link-target
[ 'UserTitle', 'Title', 'title', 1, 0, 'var', '', 0 ],
[ 'UserFirstname', 'Firstname', 'first_name', 1, 1, 'var', '', 0 ],
[ 'UserLastname', 'Lastname', 'last_name', 1, 1, 'var', '', 0 ],
[ 'UserLogin', 'Username', 'login', 1, 1, 'var', '', 0 ],
[ 'UserPassword', 'Password', 'pw', 0, 0, 'var', '', 0 ],
[ 'UserEmail', 'Email', 'email', 1, 1, 'var', '', 0 ],
# [ 'UserEmail', 'Email', 'email', 1, 1, 'var', '$Env{"CGIHandle"}?Action=AgentTicketCompose&ResponseID=1&TicketID=$Data{"TicketID"}&ArticleID=$Data{"ArticleID"}', 0 ],
[ 'UserCustomerID', 'CustomerID', 'customer_id', 0, 1, 'var', '', 0 ],
# [ 'UserCustomerIDs', 'CustomerIDs', 'customer_ids', 1, 0, 'var', '', 0 ],
[ 'UserPhone', 'Phone', 'phone', 1, 1, 'var', '', 0 ], <-- this is where I changed the mandatory flag as you suggested
[ 'UserFax', 'Fax', 'fax', 1, 0, 'var', '', 0 ],
[ 'UserMobile', 'Mobile', 'mobile', 1, 0, 'var', '', 0 ],
[ 'UserStreet', 'Street', 'street', 1, 0, 'var', '', 0 ],
[ 'UserZip', 'Zip', 'zip', 1, 0, 'var', '', 0 ],
[ 'UserCity', 'City', 'city', 1, 0, 'var', '', 0 ],
[ 'UserCountry', 'Country', 'country', 1, 0, 'var', '', 0 ],
[ 'UserComment', 'Comment', 'comments', 1, 0, 'var', '', 0 ],
[ 'ValidID', 'Valid', 'valid_id', 0, 1, 'int', '', 0 ],
], <-- This is the last line I entered
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# #
# End of your own config options!!! #
# #
# ---------------------------------------------------- #
# ---------------------------------------------------- #
Thanks for the help.
Daniel
From: otrs-bounces@otrs.orgmailto:otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.orgmailto:otrs-bounces@otrs.org] On Behalf Of Gerald Young
Sent: Tuesday, January 25, 2011 10:10 AM
To: User questions and discussions about OTRS.
Subject: Re: [otrs] Anyone know how to make a field mandatory?
Set the "required" bit to 1 in the Config.pm CustomerUser Map:
$Self->{CustomerUser} = {
#################################################################################################
#... other content from Defaults.pm was not pasted in this post ... you still need to copy them #
#################################################################################################
Map => [
# note: Login, Email and CustomerID needed!
# var, frontend, storage, shown (1=always,2=lite), required, storage-type, http-link, readonly, http-link-target
#################################################################################################
#... other content from Defaults.pm was not pasted in this post ... you still need to copy them #
#################################################################################################
[ 'UserPhone', 'Phone', 'phone', 1, 1, 'var', '', 0 ],
On Tue, Jan 25, 2011 at 2:44 AM, Navarro, Daniel mailto:Daniel.Navarro@gtech.com> wrote:
I'd like to make the phone # field mandatory in the Add Customer screen of the Admin section. I need to do this because there is a customer requirement that we must record the phone # of the caller for all tickets that are called in.
Thanks in advance.
Daniel
CONFIDENTIALITY NOTICE: The contents of this email are confidential
and for the exclusive use of the intended recipient. If you receive this
email in error, please delete it from your system immediately and
notify us either by email, telephone or fax. You should not copy,
forward, or otherwise disclose the content of the email.
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
CONFIDENTIALITY NOTICE: The contents of this email are confidential
and for the exclusive use of the intended recipient. If you receive this
email in error, please delete it from your system immediately and
notify us either by email, telephone or fax. You should not copy,
forward, or otherwise disclose the content of the email.
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
CONFIDENTIALITY NOTICE: The contents of this email are confidential
and for the exclusive use of the intended recipient. If you receive this
email in error, please delete it from your system immediately and
notify us either by email, telephone or fax. You should not copy,
forward, or otherwise disclose the content of the email.