db boolean
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 2 Aug 2006 21:25:02 +0000 (21:25 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 2 Aug 2006 21:25:02 +0000 (21:25 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5234 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/info_notes.xul

index effdfd0..f29a575 100644 (file)
                                        function(n){n.setAttribute("tooltiptext","Note ID: " + g.notes[i].id() + " Creator ID: " + g.notes[i].creator());}
                                );
                                apply(node,'title',g.notes[i].title());
-                               apply(node,'pub',g.notes[i].pub() ? "Public" : "Private");
+                               apply(node,'pub',get_bool(g.notes[i].pub()) ? "Public" : "Private");
                                apply(node,'value',g.notes[i].value());
                                apply(node,'id',g.notes[i].id());
                                apply(node,'creator',g.notes[i].creator());
                                        note.isnew(1);
                                        note.title( g.data.fancy_prompt_data.title );
                                        note.value( g.data.fancy_prompt_data.note );
-                                       note.pub( g.data.fancy_prompt_data.public ? 't' : 'f' );
+                                       note.pub( g.data.fancy_prompt_data.public ? get_db_true() : get_db_false() );
                                        note.usr( g.patron_id );
                                        var r = g.network.simple_request('FM_AUN_CREATE',[ ses(), note ]);
                                        if (typeof r.ilsevent != 'undefined') throw(r);