From 9120d4bf5f750d9c27aa0d4276b0440edfbbe29e Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 26 Jun 2006 06:10:50 +0000 Subject: [PATCH] handle case where copy editor is closed without copies being saved git-svn-id: svn://svn.open-ils.org/ILS/trunk@4782 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js index 034fe4cd70..dcea458b95 100644 --- a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js +++ b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js @@ -362,6 +362,10 @@ g.stash_and_close = function() { /* FIXME -- need to unique the temp space, and not rely on modalness of window */ g.data.stash_retrieve(); copies = JSON2js( g.data.temp_copies ); + if (!copies) { + alert('Items were not created.'); + return; + } } for (var i = 0; i < copies.length; i++) { -- 2.43.2