diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2015-01-25 14:57:34 +0100 |
---|---|---|
committer | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2015-01-25 19:15:26 +0100 |
commit | 37f18efd3d3195395d029b25a20fda472691cbe9 (patch) | |
tree | 474ebdb0ae3fa2b6d8d58cb8b27547eb1fda39ed /Kernel/System/DefaultRecipient.pm | |
parent | 585c64222f5881ebdacf14397ca9bb2c2abebaef (diff) | |
download | DefaultRecipient-37f18efd3d3195395d029b25a20fda472691cbe9.tar.gz DefaultRecipient-37f18efd3d3195395d029b25a20fda472691cbe9.tar.bz2 DefaultRecipient-37f18efd3d3195395d029b25a20fda472691cbe9.zip |
Rename NewAddress to AddTo.
Diffstat (limited to 'Kernel/System/DefaultRecipient.pm')
-rw-r--r-- | Kernel/System/DefaultRecipient.pm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Kernel/System/DefaultRecipient.pm b/Kernel/System/DefaultRecipient.pm index 82a366b..d570dca 100644 --- a/Kernel/System/DefaultRecipient.pm +++ b/Kernel/System/DefaultRecipient.pm @@ -31,7 +31,7 @@ sub Add { my ( $Self, %Param ) = @_; # check needed stuff - for my $Needed (qw(Title RemoveTo NewAddress Comment UserID)) { + for my $Needed (qw(Title RemoveTo AddTo Comment UserID)) { if ( ! defined $Param{$Needed} ) { my $LogObject = $Kernel::OM->Get('Kernel::System::Log'); $LogObject->Log( @@ -47,13 +47,13 @@ sub Add { # insert new DefaultRecipient return if !$DBObject->Do( SQL => 'INSERT INTO default_recipient ' - . '(title, remove_to, new_address, comments, ' + . '(title, remove_to, add_to, comments, ' . ' create_time, create_by, change_time, change_by) ' . 'VALUES (?, ?, ?, ?, current_timestamp, ?, current_timestamp, ?)', Bind => [ \$Param{Title}, \$Param{RemoveTo}, - \$Param{NewAddress}, + \$Param{AddTo}, \$Param{Comment}, \$Param{UserID}, \$Param{UserID}, @@ -86,7 +86,7 @@ sub Update { my ( $Self, %Param ) = @_; # check needed stuff - for my $Needed (qw(ID Title RemoveTo NewAddress Comment UserID)) { + for my $Needed (qw(ID Title RemoveTo AddTo Comment UserID)) { if ( ! defined $Param{$Needed} ) { my $LogObject = $Kernel::OM->Get('Kernel::System::Log'); $LogObject->Log( @@ -102,13 +102,13 @@ sub Update { # insert new DefaultRecipient return if !$DBObject->Do( SQL => 'UPDATE default_recipient SET title = ?, remove_to = ?, ' - . 'new_address = ?, comments = ?, change_by = ?, ' + . 'add_to = ?, comments = ?, change_by = ?, ' . 'change_time = current_timestamp ' . 'WHERE id = ?', Bind => [ \$Param{Title}, \$Param{RemoveTo}, - \$Param{NewAddress}, + \$Param{AddTo}, \$Param{Comment}, \$Param{UserID}, \$Param{ID}, @@ -135,7 +135,7 @@ sub Get { # get RrsponseChangeDefaultTO obejct return if !$DBObject->Prepare( - SQL => 'SELECT id, title, remove_to, new_address, ' + SQL => 'SELECT id, title, remove_to, add_to, ' . 'comments, create_time, create_by, change_time, change_by ' . 'FROM default_recipient WHERE id = ?', Bind => [ \$Param{ID} ], @@ -148,7 +148,7 @@ sub Get { ID => $Data[0], Title => $Data[1], RemoveTo => $Data[2], - NewAddress => $Data[3], + AddTo => $Data[3], Comment => $Data[4], CreateTime => $Data[5], CreateBy => $Data[6], |