Confirmed. I have fixed this before, I should really keep one master copy of
the code and save fixes to it.
Which begs the question, can we post fixes back to the source? As I'm not a
developer, how can I help to fix things? I've got about seven projects
underway using this codebase and I'm finding things that need to be
addressed regularly. Or is it too late for this version?

Chris Mason
Box 340, The Valley, Anguilla, British West Indies
Tel: 264 497 5670 Fax: 264 497 8463
USA Fax (561) 382-7771
Take a virtual tour of the island
http://net.ai/ The Anguilla Guide
Find out more about NetConcepts
www.netconcepts.ai
Talk to me in real time with Instant Messenger: [EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Bob Hutchinson
Sent: Thursday, January 04, 2001 6:16 AM
To: FreeTrade
Subject: Re: [FreeTrade] Bug with adding dept


At 23:05 03/01/01 , you wrote:
>I notice that with Freetrade 1.04 when I add a sub-department the graphic
is
>not added to the database, only updating the department inserts the
graphic.

You are right, it doesn't. Here is a fix:
In actions/ADD_DEPARTMENT line 98.
Original:
$Query = "INSERT INTO department (Name, Parent, Description, " .

                "DisplayPrecedence) ";
$Query .= "VALUES (";

$Query .= "'" . addslashes($inputName) . "', ";

$Query .= intval($inputParent) . ", ";

$Query .= "'" . addslashes($inputDescription) . "', ";

$Query .= intval($inputDisplayPrecedence) . ")";


Fix:
$Query = "INSERT INTO department (Name, Graphic, Parent, Description, " .

                "DisplayPrecedence) ";
$Query .= "VALUES (";

$Query .= "'" . addslashes($inputName) . "', ";

$Query .= "'" . addslashes($inputGraphic) . "', ";

$Query .= intval($inputParent) . ", ";

$Query .= "'" . addslashes($inputDescription) . "', ";

$Query .= intval($inputDisplayPrecedence) . ")";


I haven't tested this, but I'm sure it will work


>
>Chris Mason
>Box 340, The Valley, Anguilla, British West Indies
>Tel: 264 497 5670 Fax: 264 497 8463
>USA Fax (561) 382-7771
>Take a virtual tour of the island
>http://net.ai/ The Anguilla Guide
>Find out more about NetConcepts
>www.netconcepts.ai
>Talk to me in real time with Instant Messenger: [EMAIL PROTECTED]
>
>
>
>
>------------------------------------------------------------
>To subscribe:    [EMAIL PROTECTED]
>To unsubscribe:  [EMAIL PROTECTED]
>Site:            http://www.working-dogs.com/freetrade/
>Problems?:       [EMAIL PROTECTED]
>

bye
Bob Hutchinson
[EMAIL PROTECTED]



------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]






------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to