Skip to content

Commit

Permalink
with_wildcard_routes not only means <prefix_path>/batch/action but <p…
Browse files Browse the repository at this point in the history
…refix_path>/: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 <a href="<prefix_path>/ListReturn/action">Return</a>. If sf_method is set to POST realy realy lots of the WTF IS THIS SHIT can be.
  • Loading branch information
ldath committed Sep 21, 2012
1 parent 314d218 commit 8690dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routing/sfPropelORMRouteCollection.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
);
}
Expand Down

0 comments on commit 8690dbd

Please sign in to comment.