From 3ffa6ed4b315287e417c5f540f6c9563882bb537 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sun, 8 Aug 2010 16:41:51 +0000 Subject: [PATCH] fix bug in creating file --- dev/manage-code/create-file/create_file_table.sql | 2 +- dev/manage-code/create-file/create_phpclass.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/manage-code/create-file/create_file_table.sql b/dev/manage-code/create-file/create_file_table.sql index 039363b38..ccd9f2fa1 100644 --- a/dev/manage-code/create-file/create_file_table.sql +++ b/dev/manage-code/create-file/create_file_table.sql @@ -3,5 +3,5 @@ SELECT FROM information_schema.columns WHERE - columns.table_name='member_record'; + columns.table_name='section_ledger'; diff --git a/dev/manage-code/create-file/create_phpclass.py b/dev/manage-code/create-file/create_phpclass.py index 89b2c3d6f..273b8e47a 100755 --- a/dev/manage-code/create-file/create_phpclass.py +++ b/dev/manage-code/create-file/create_phpclass.py @@ -71,6 +71,7 @@ class @class_name@ @mother_class@ if ( $p_id == -1 ) { /* Initialize an empty object */ foreach ($this->variable as $key=>$value) $this->$value=''; + $this->@id@=$p_id; } else { /* load it */