Subject: | Patch for Catalys::Enzym::CRUD::Model |
Hello!
Here is a patch for Catalyst/Enzyme/CRUD/Model.pm:
1. It fixes edit_columns function.
It returned view columns instead of edit columns.
2. It fixes namespace_of_column_has_a function
for proper support of controller namespaces.
It worked incorrectly if controller has some prefix,
for example "ttp://mysit.com/prefix/table1/list".
Now it's fixed.
Subject: | Catalyst-Enzyme-CRUD-Model.pm.diff |
--- Model.pm.orig 2007-06-04 10:47:27.000000000 +0500
+++ Model.pm 2007-06-04 10:47:54.000000000 +0500
@@ -260,7 +260,7 @@
sub edit_columns {
my $pkg = shift;
- my @columns = $pkg->columns("view_columns");
+ my @columns = $pkg->columns("edit_columns");
@columns or @columns = $pkg->view_columns;
@columns or @columns = $pkg->default_columns();