Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] [PATCH] UI error handling



******    message to minivend-users from Stefan Hornburg <racke@linuxia.de>     ******


This patch fixes the error handling for the following case
- IC
- no transaction database
- clicking on "Orders" in the UI

diff -u -c -r1.1.1.5 order.html
*** order.html	2000/08/08 10:51:34	1.1.1.5
--- order.html	2000/08/29 21:57:28
***************
*** 22,28 ****
  	delete $Scratch->{ui_location};
  	my $db = $Db{transactions};
  	if(! $db) {
! 		$Scratch->{error_message} = "<FONT CLASS=error>Error: no transactions database.</FONT><BR>";
  		$Scratch->{ui_location} = "__UI_BASE__/error";
  		return;
  	}
--- 22,28 ----
  	delete $Scratch->{ui_location};
  	my $db = $Db{transactions};
  	if(! $db) {
! 		$Scratch->{ui_error} = 'no transactions database';
  		$Scratch->{ui_location} = "__UI_BASE__/error";
  		return;
  	}
***************
*** 104,110 ****
  
  
  [if scratch ui_location]
! [bounce href=`delete $Scratch->{ui_location}`]
  [/if]
  
  [set icon_name]admin/icon_orders.gif[/set]
--- 104,110 ----
  
  
  [if scratch ui_location]
! [bounce href="[area href=`delete $Scratch->{ui_location}`]"]
  [/if]
  
  [set icon_name]admin/icon_orders.gif[/set]

Ciao
        Racke

-- 
LinuXia Systems && Cobolt NetServices, eCommerce and more
Shop- und Datenbanklösungen mit MiniVend, Firewalls auf Debian-Basis
http://www.linuxia.de - http://www.cobolt.net
--> Coding from hell and back <--- 
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: