added lineitem alert text fleshing on lineitem notes
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 15 Feb 2010 14:16:12 +0000 (14:16 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 15 Feb 2010 14:16:12 +0000 (14:16 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15532 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Acq/Lineitem.pm
Open-ILS/src/perlmods/OpenILS/Application/Acq/Picklist.pm

index d7c5fde..21f01fb 100644 (file)
@@ -92,8 +92,11 @@ sub retrieve_lineitem {
 
     my $flesh = {};
     if($$options{flesh_attrs} or $$options{flesh_notes}) {
-        $flesh = {flesh => 1, flesh_fields => {jub => []}};
-        push(@{$flesh->{flesh_fields}->{jub}}, 'lineitem_notes') if $$options{flesh_notes};
+        $flesh = {flesh => 2, flesh_fields => {jub => []}};
+        if($$options{flesh_notes}) {
+            push(@{$flesh->{flesh_fields}->{jub}}, 'lineitem_notes');
+            $flesh->{flesh_fields}->{acqlin} = ['alert_text'];
+        }
         push(@{$flesh->{flesh_fields}->{jub}}, 'attributes') if $$options{flesh_attrs};
     }
 
index 5f0b5fd..b3e9aae 100644 (file)
@@ -343,8 +343,11 @@ sub retrieve_pl_lineitem {
         my $entry;
         my $flesh = {};
         if($$options{flesh_attrs} or $$options{flesh_notes}) {
-            $flesh = {flesh => 1, flesh_fields => {jub => []}};
-            push(@{$flesh->{flesh_fields}->{jub}}, 'lineitem_notes') if $$options{flesh_notes};
+            $flesh = {flesh => 2, flesh_fields => {jub => []}};
+            if($$options{flesh_notes}) {
+                push(@{$flesh->{flesh_fields}->{jub}}, 'lineitem_notes');
+                $flesh->{flesh_fields}->{acqlin} = ['alert_text'];
+            }
             push(@{$flesh->{flesh_fields}->{jub}}, 'attributes') if $$options{flesh_attrs};
         }