From 281310c8786d8a3f5f78ead3a935cb033f607095 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 18 Mar 2011 16:51:20 +0000 Subject: [PATCH] added field_safe attr to ccs, aout, and crahp classes; capture field_safe attr during IDL parsing git-svn-id: svn://svn.open-ils.org/ILS/trunk@19807 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/examples/fm_IDL.xml | 6 +++--- Open-ILS/src/perlmods/lib/OpenILS/Utils/Fieldmapper.pm | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 3047e2a573..6d3cf94c7d 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -2568,7 +2568,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - + @@ -4330,7 +4330,7 @@ SELECT usr, - + @@ -4757,7 +4757,7 @@ SELECT usr, - + diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Utils/Fieldmapper.pm b/Open-ILS/src/perlmods/lib/OpenILS/Utils/Fieldmapper.pm index bb582dcfdb..e1bebb7219 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Utils/Fieldmapper.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Utils/Fieldmapper.pm @@ -160,6 +160,7 @@ sub load_class { $tablename = ''; } my $restrict_primary = get_attribute( $attribute_list, 'oils_persist:restrict_primary' ); + my $field_safe = get_attribute( $attribute_list, 'oils_persist:field_safe' ); # Load the attributes into the Fieldmapper -------------------- @@ -170,6 +171,7 @@ sub load_class { $$fieldmap{$fm}{ table } = $tablename; $$fieldmap{$fm}{ controller } = [ split ' ', $controller ]; $$fieldmap{$fm}{ restrict_primary } = $restrict_primary; + $$fieldmap{$fm}{ field_safe } = $field_safe; # Load fields and links -- 2.11.0