you might be able to fix this will this patch:
Index: lib/Class.Table.php
===================================================================
--- lib/Class.Table.php (revision 582)
+++ lib/Class.Table.php (working copy)
@@ -5,7 +5,10 @@
var $fields = "*"; // "id", "name", etc..
var $table = "";
var $errstr = "";
- var $debug_st = 0;
+ var $debug_st = 0;
+ var $debug_stop_add = 0;
+ var $debug_stop_update = 0;
+ var $debug_stop_delete = 0;
var $sp = "`"; //bound_caract
/* CONSTRUCTOR */
@@ -156,6 +159,7 @@
$QUERY = "INSERT INTO $sp".$this -> table."$sp (".$this -> fields.") values (".trim ($value).")";
if ($this -> debug_st) echo "<br>".$QUERY;
+ if ($this -> debug_stop_add){ echo "<br>".$QUERY; exit(); }
$res = $DBHandle -> query($QUERY);
@@ -207,6 +211,7 @@
$QUERY = "UPDATE $sp".$this -> table."$sp SET ".trim ($param_update)." WHERE ".trim ($clause);
if ($this -> debug_st) echo "<br>".$QUERY;
+ if ($this -> debug_stop_update){ echo "<br>".$QUERY; exit(); }
$res = $DBHandle -> query($QUERY);
@@ -234,6 +239,7 @@
$QUERY = "DELETE FROM $sp".$this -> table."$sp WHERE (".trim ($clause).")";
if ($this -> debug_st) echo "<br>".$QUERY;
+ if ($this -> debug_stop_delete){ echo "<br>".$QUERY; exit(); }
$res = $DBHandle -> query($QUERY);
Index: Public/form_data/FG_var_payment.inc
===================================================================
--- Public/form_data/FG_var_payment.inc (revision 582)
+++ Public/form_data/FG_var_payment.inc (working copy)
@@ -3,8 +3,13 @@
getpost_ifset(array('id', 'card_id', 'date', 'payment'));
-$HD_Form = new FormHandler("cc_logpayment LEFT JOIN cc_card ON cc_card.id=card_id","payment");
+if (!isset($form_action) || $form_action=="list"){
+ $HD_Form = new FormHandler("cc_logpayment LEFT JOIN cc_card ON cc_card.id=card_id","payment");
+}else{
+ $HD_Form = new FormHandler("cc_logpayment","payment");
+}
+
$HD_Form -> FG_TABLE_ID = 'cc_logpayment.id';
$HD_Form -> FG_DEBUG = 0;
|