RE: [otrs] Bug with PhoneDefaultSubject (?)

Ok, I already found it (but I´m sure it wasn´t there yesterday ;-) One has to use "PhoneDefaultNewSubject" instead of "PhoneDefaultSubject". Is "PhoneDefaultSubject" used for something else or isn´t it used anymore? Lars
-----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org]On Behalf Of Lars Monsees Sent: Tuesday, September 23, 2003 10:19 AM To: Otrs (E-Mail) Subject: [otrs] Bug with PhoneDefaultSubject (?)
Hello,
I want a new ticket (created in phoneview) to not have a default subject. Therefore I copied the following text from Defaults.pm to Config.pm.
# default note subject $Self->{PhoneDefaultSubject} = '';
# default note text $Self->{PhoneDefaultNewNoteText} = '';
It wasn´t necessary to restart httpd or otrs for the "NewNoteText" to be empty. But it didn´t work for the subject. I then restarted httpd and otrs but nothing changed.
I used 'test' instead of '' and this didn´t work either.
Did I forget something or could this be a bug?
Lars _______________________________________________ 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 Support oder Consulting für Ihr OTRS System?

Hi everybody about OTRS 1.1.3 /script/backup.sh I think I found a bug in backup.sh line 105 in the way to calculate the old backup dir : OLDBACKUPFOLDER="$(date +%Y)-$(( $(date +%m) - 1))-$(date +%d)*" echo "deleting old backups in ${BACKUPDIR}/${OLDBACKUPFOLDER}" rm -Rf ${BACKUPDIR}/${OLDBACKUPFOLDER} Under RedHat 9 it makes an error: backup.sh: line 105: 09: value too great for base (error token is "09") #for my own, i have adjusted it via a more brutal way: SUBBACKUPFOLDER=`date +%d` ; rm -rf ${BACKUPDIR}/${SUBBACKUPFOLDER} ; mkdir ${BACKUPDIR}/${SUBBACKUPFOLDER} || exit 1 thanks bye Jerome

On Tue, Sep 23, 2003 at 12:26:58PM +0200, jerome@lemontreer.net wrote:
Hi everybody about OTRS 1.1.3 /script/backup.sh I think I found a bug in backup.sh line 105 in the way to calculate the old backup dir :
OLDBACKUPFOLDER="$(date +%Y)-$(( $(date +%m) - 1))-$(date +%d)*" echo "deleting old backups in ${BACKUPDIR}/${OLDBACKUPFOLDER}" rm -Rf ${BACKUPDIR}/${OLDBACKUPFOLDER}
Under RedHat 9 it makes an error: backup.sh: line 105: 09: value too great for base (error token is "09")
confirmed, I uploaded a patched version to the cvs. I wonder why it ever worked... -- Regards, Wiktor Wodecki

Hi, When I try to run backup.sh it says backup.sh - a backup script for OTRS <$Revision: 1.10 $> ./backup.sh: syntax error at line 53: `(' unexpected Line 53: is "shift $(($OPTIND - 1))" What's wrong with this? Regards, Alex
-----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Wiktor Wodecki Sent: 23. september 2003 13:49 To: User questions and discussions about OTRS. Subject: Re: [otrs] bug with backup.sh, OTRS 113/RH9
On Tue, Sep 23, 2003 at 12:26:58PM +0200, jerome@lemontreer.net wrote:
Hi everybody about OTRS 1.1.3 /script/backup.sh I think I found a bug in backup.sh line 105 in the way to calculate the old backup dir :
OLDBACKUPFOLDER="$(date +%Y)-$(( $(date +%m) - 1))-$(date +%d)*" echo "deleting old backups in ${BACKUPDIR}/${OLDBACKUPFOLDER}" rm -Rf ${BACKUPDIR}/${OLDBACKUPFOLDER}
Under RedHat 9 it makes an error: backup.sh: line 105: 09: value too great for base (error token is "09")
confirmed, I uploaded a patched version to the cvs. I wonder why it ever worked...
-- Regards,
Wiktor Wodecki
_______________________________________________ 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 Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/

On Wed, Sep 24, 2003 at 11:10:02AM +0200, Alex Mihicinac wrote:
Hi,
When I try to run backup.sh it says
backup.sh - a backup script for OTRS <$Revision: 1.10 $> ./backup.sh: syntax error at line 53: `(' unexpected
Line 53: is "shift $(($OPTIND - 1))"
What's wrong with this?
nothing really. Please send a full bugreport. -- Regards, Wiktor Wodecki

On Tue, Sep 23, 2003 at 10:32:40AM +0200, Lars Monsees wrote:
Ok, I already found it (but I´m sure it wasn´t there yesterday ;-)
One has to use "PhoneDefaultNewSubject" instead of "PhoneDefaultSubject". Is "PhoneDefaultSubject" used for something else or isn´t it used anymore?
"PhoneDefaultNewSubject" is for new phone tickets. "PhoneDefaultSubject" is for phone notes (on an existing ticket).
Lars
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- "Security is a process, not a product." - Bruce Schneier
participants (5)
-
Alex Mihicinac
-
jerome@lemontreer.net
-
Lars Monsees
-
Martin Edenhofer
-
Wiktor Wodecki