Summary | Empty id causes missing url part when generating a url in routes |
Queue | Horde Framework Packages |
Queue Version | Git master |
Type | Bug |
State | Assigned |
Priority | 1. Low |
Owners | chuck (at) horde (dot) org |
Requester | wrobel (at) horde (dot) org |
Created | 03/27/2009 (5892 days ago) |
Due | |
Updated | 10/10/2010 (5330 days ago) |
Assigned | 03/27/2009 (5892 days ago) |
Resolved | |
Milestone | |
Patch | No |
Taken from Mike Naberezny
State ⇒ Assigned
New Attachment: empty_id_with_default.diff
cause selection of the default if one is given. If no default is
present the mapping works fine. I just add the failing unit test for
this.
Priority ⇒ 1. Low
New Attachment: empty_id_with_no_default.diff
Patch ⇒ No
Milestone ⇒
Summary ⇒ Empty id causes missing url part when generating a url in routes
Type ⇒ Bug
State ⇒ Unconfirmed
Queue ⇒ Horde Framework Packages
$m->connect(':controller/:action/:id', array('controller' =>
'content', 'action' => 'view', 'id' => 'all'));
or
$m->connect(':controller/:action/:id', array('controller' =>
'content', 'action' => 'view'));
the call
$m->generate(array('controller' => 'content', 'action' => 'view', 'id' => 0))
returns an unexpected result.
I added a unit test and a potential fix. I think the fix improves
things but it has an effect on the outcome of other unit tests. So I
guess I better attach this as a patch.