From 2a0e53232d701e7db2f4565f7e31bf88670c021f Mon Sep 17 00:00:00 2001 From: einhverfr Date: Wed, 15 Nov 2006 00:54:17 +0000 Subject: Fixing parts handling so if part is not saved we display error. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@607 4979c152-3d1c-0410-bac9-87ea11338e46 --- bin/ic.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/ic.pl b/bin/ic.pl index 8cc8f5f5..c1a5b27d 100755 --- a/bin/ic.pl +++ b/bin/ic.pl @@ -3013,8 +3013,12 @@ sub save { $form->{callback} = $callback; } - # redirect - $form->redirect; + if ($rc){ + # redirect + $form->redirect("Part Saved"); + } else { + $form->error; + } } -- cgit v1.2.3