projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of https://github.com/jgoodman/Freeside
[freeside.git]
/
rt
/
lib
/
RT
/
Template.pm
diff --git
a/rt/lib/RT/Template.pm
b/rt/lib/RT/Template.pm
index
fd4b511
..
d15c1cd
100755
(executable)
--- a/
rt/lib/RT/Template.pm
+++ b/
rt/lib/RT/Template.pm
@@
-2,7
+2,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
3
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
4
Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@
-256,7
+256,7
@@
sub Create {
$args{'Queue'} = $QueueObj->Id;
}
$args{'Queue'} = $QueueObj->Id;
}
- my
$result
= $self->SUPER::Create(
+ my
( $result, $msg )
= $self->SUPER::Create(
Content => $args{'Content'},
Queue => $args{'Queue'},
Description => $args{'Description'},
Content => $args{'Content'},
Queue => $args{'Queue'},
Description => $args{'Description'},
@@
-264,7
+264,11
@@
sub Create {
Type => $args{'Type'},
);
Type => $args{'Type'},
);
- return ($result);
+ if ( wantarray ) {
+ return ( $result, $msg );
+ } else {
+ return ( $result );
+ }
}
}