Kent:
> Bug 1:
> Just downloaded Freetrade 1.0.1 and test out the "Store".  Somehow when I
> click on the item of interest it said "This item is unavailable at this
> time."
>
> I reverted back to Freetrade 1.0.0
> Everything worked fine except the "create_index".  So I copied
> "created_index" from Freetrade 1.0.1 to fix the "Create New Search Index".

Ted:
> After printing the opening BODY tag, but before including the page
> body, the following code seems to have been accidentally removed. If
> you replace it, your Bug 1 is fixed.


OK, here's the story.  I realized that it wasn't appropriate for that code
to be in index.php3.  If anything it should be in init.  But then I got to
thinking that it's not used anywhere...well, actually, it's used on one
screen,
the item screen.  So, I ripped it out, but I didn't add any code to the item
screen to make the info available.  I've just commited a change to do that.
The code I added to the top of item is

        //get item functions
        require(APPLICATION_ROOT . "/modules/include/item_functions");

        //get item info
        $Item = GetItemInfo($item);

        if( !isset($department) )
        {
                //get the department for this item
                $department = $Item["Department"][0];

        }

Going forward, GetItemInfo should be changed to use caching, like some of
the other functions.  Then you'll be free to call it over and over without
worrying about repeated hits to the database.

Leon



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

Reply via email to