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]

Reply via email to