Liberum Help Desk
The free, open source solution for the web-based help desk.

Is it a bug?

rated by 0 users
This post has 0 Replies | 1 Follower

Top 10 Contributor
Posts 29
tyampoo Posted: 05-22-2009 3:53 PM

Hi,

Here is the LHD code

 

cnnDB.Close

Call DisplayError (1, lang (cnnDB, “Some Literal”))

 

Now when the cnnDB is closed how can Lang function use the cnnDB, is this a bug or was it put purposefully and something that I missed.

 

I changed to

 

Dim someLiteral

someLiteral = lang (cnnDB, “Some Literal”)

cnnDB.Close

Call DisplayError (1, someLiteral)

 

And in /helpdesk/public.asp I changed it to

Function DisplayError (eType, component)

    Dim cnnDB

    cnnDB = CreateCon

   :

   :

   :

    Select Case eType

    Case 1

            Response.Write . . . & lang (cnnDB, “isarequiredfield”) & “. . .

 

Now use of cnnDB in the call of lang (cnnDB, . . .) with out creating one, from the function DisplayError, I think is a bug (or something I missed) as cnnDB is not passed to the function.

 

It is now, in my opinion, working fine; but with out cnnDB.Close in DisplayError. I wonder why it gives "object required" error when I put cnnDB.Close in DisplayError function. Any Idea?

 

I am still in process of testing. I am wondering these “bug” were if actually a bug or was put there as is for some reason and I am missing that reason.

 

Any light on the issue is appreciated. And I am grateful for such a nice product.

Thanks,

Page 1 of 1 (1 items) | RSS
Copyright © Doug Luxem 2000-2010
Powered by Community Server (Non-Commercial Edition), by Telligent Systems