projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.0.7
[freeside.git]
/
rt
/
bin
/
rt.in
diff --git
a/rt/bin/rt.in
b/rt/bin/rt.in
index
5e1c053
..
2a9f643
100644
(file)
--- a/
rt/bin/rt.in
+++ b/
rt/bin/rt.in
@@
-420,7
+420,7
@@
sub show {
}
elsif (my $spec = is_object_spec($_, $type)) {
push @objects, $spec;
}
elsif (my $spec = is_object_spec($_, $type)) {
push @objects, $spec;
- $rawprint = 1 if $_ =~ /\/content$/ or $_ !~ /^ticket/;
+ $rawprint = 1 if $_ =~ /\/content$/ or $_
=~ /\/links/ or $_
!~ /^ticket/;
}
else {
my $datum = /^-/ ? "option" : "argument";
}
else {
my $datum = /^-/ ? "option" : "argument";
@@
-905,11
+905,6
@@
sub link {
if (@ARGV == 3) {
my ($from, $rel, $to) = @ARGV;
if (@ARGV == 3) {
my ($from, $rel, $to) = @ARGV;
- if ($from !~ /^\d+$/ || $to !~ /^\d+$/) {
- my $bad = $from =~ /^\d+$/ ? $to : $from;
- whine "Invalid $type ID '$bad' specified.";
- $bad = 1;
- }
if (($type eq "ticket") && ( ! exists $ltypes{lc $rel})) {
whine "Invalid link '$rel' for type $type specified.";
$bad = 1;
if (($type eq "ticket") && ( ! exists $ltypes{lc $rel})) {
whine "Invalid link '$rel' for type $type specified.";
$bad = 1;
@@
-1710,7
+1705,7
@@
sub prettyshow {
}
print "$k->{Content}\n" if exists $k->{Content} and
$k->{Content} !~ /to have no content$/ and
}
print "$k->{Content}\n" if exists $k->{Content} and
$k->{Content} !~ /to have no content$/ and
-
$k->{Type}
ne 'EmailRecord';
+
($k->{Type}||'')
ne 'EmailRecord';
print "$k->{Attachments}\n" if exists $k->{Attachments} and
$k->{Attachments};
}
print "$k->{Attachments}\n" if exists $k->{Attachments} and
$k->{Attachments};
}