[Rt-commit] r18059 - in rt/3.999/branches/merge_to_3.8.2: .
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Jan 29 09:46:56 EST 2009
Author: sunnavy
Date: Thu Jan 29 09:46:55 2009
New Revision: 18059
Modified:
rt/3.999/branches/merge_to_3.8.2/ (props changed)
rt/3.999/branches/merge_to_3.8.2/share/html/REST/1.0/dhandler
Log:
r19285 at sunnavys-mb: sunnavy | 2009-01-29 22:32:14 +0800
merged share/html/REST/1.0/dhandler
Modified: rt/3.999/branches/merge_to_3.8.2/share/html/REST/1.0/dhandler
==============================================================================
--- rt/3.999/branches/merge_to_3.8.2/share/html/REST/1.0/dhandler (original)
+++ rt/3.999/branches/merge_to_3.8.2/share/html/REST/1.0/dhandler Thu Jan 29 09:46:55 2009
@@ -142,7 +142,8 @@
my ($type, $id);
# Look for matching types in the ID, form, and URL.
- $type = exists $k->{type} ? $k->{type} : $utype;
+ $type = $utype || $k->{id};
+ $type =~ s|^([^/]+)/\d+$|$1| if !$utype;
$type =~ s|^(?:$utype)?|$utype/| if $utype;
$type =~ s|/$|| if $type;
More information about the Rt-commit
mailing list