From 314d218141a23d67d78fab5f44cfdba0fe787e52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arkadiusz=20Tu=C5=82odziecki?= Date: Fri, 21 Sep 2012 23:04:42 +0200 Subject: [PATCH 1/3] repo in repo ignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 76b940963..78d78955a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ test/functional/fixtures/lib/model/map/ test/functional/fixtures/lib/model/om/ mockproject/ junit.xml +.svn From 8690dbd7a152fa30fd417ddcd12a19c8513dc9bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arkadiusz=20Tu=C5=82odziecki?= Date: Fri, 21 Sep 2012 23:12:57 +0200 Subject: [PATCH 2/3] with_wildcard_routes not only means /batch/action but /:action/action where action can be anything and in Symfony in most of cases when admin generator is used thare is a link (GET method) like for example Return. If sf_method is set to POST realy realy lots of the WTF IS THIS SHIT can be. --- lib/routing/sfPropelORMRouteCollection.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routing/sfPropelORMRouteCollection.class.php b/lib/routing/sfPropelORMRouteCollection.class.php index 8220630ef..4f88866ce 100644 --- a/lib/routing/sfPropelORMRouteCollection.class.php +++ b/lib/routing/sfPropelORMRouteCollection.class.php @@ -103,7 +103,7 @@ protected function getWildcardRouteForCollection() return new $this->routeClass( sprintf('%s/:action/action.:sf_format', $this->options['prefix_path']), array_merge(array('module' => $this->options['module'], 'sf_format' => 'html'), $this->options['default_params']), - array_merge($this->options['requirements'], array('sf_method' => 'post')), + array_merge($this->options['requirements'], array()), array('model' => $this->options['model'], 'type' => 'list', 'query_methods' => $this->options['query_methods']['list']) ); } From 055a837f2c1dac931c0ffb36393c7c68b4101278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arkadiusz=20Tu=C5=82odziecki?= Date: Sat, 22 Sep 2012 00:08:10 +0200 Subject: [PATCH 3/3] solving problem with batch action because only get, head sf_method are by default set --- lib/routing/sfPropelORMRouteCollection.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routing/sfPropelORMRouteCollection.class.php b/lib/routing/sfPropelORMRouteCollection.class.php index 4f88866ce..1db3429fc 100644 --- a/lib/routing/sfPropelORMRouteCollection.class.php +++ b/lib/routing/sfPropelORMRouteCollection.class.php @@ -103,7 +103,7 @@ protected function getWildcardRouteForCollection() return new $this->routeClass( sprintf('%s/:action/action.:sf_format', $this->options['prefix_path']), array_merge(array('module' => $this->options['module'], 'sf_format' => 'html'), $this->options['default_params']), - array_merge($this->options['requirements'], array()), + array_merge($this->options['requirements'], array('sf_method' => array('get', 'head', 'post'))), array('model' => $this->options['model'], 'type' => 'list', 'query_methods' => $this->options['query_methods']['list']) ); }