change forward/detach to work with instances
authorJohn Napiorkowski <jjn1056@yahoo.com>
Thu, 21 Jul 2022 20:01:45 +0000 (15:01 -0500)
committerJohn Napiorkowski <jjn1056@yahoo.com>
Thu, 21 Jul 2022 20:01:45 +0000 (15:01 -0500)
commit978a9a4ac27fc9cc84ada858ace22cd223e20fc2
treed6aeeafc12d532d03d2fc30d1b22c9df3a55bedd
parentfe82a51db5b44026493ce2a6e05c0f233ddfb4dd
change forward/detach to work with instances

Right now if you $c->forward($view) where $view is an instance
of a view the code will create a new view object of the same
type and forward to that, rather than forward to the view
instance (and other components).  This fixes that
lib/Catalyst/Dispatcher.pm
t/forward_instances.t [new file with mode: 0644]