Bug 1013 - Link Widget gives error when hidden
: Link Widget gives error when hidden
Status: CLOSED FIXED
: Chameleon
Widget
: 2.0
: All All
: P2 minor
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2005-04-27 05:30 by
Modified: 2006-02-15 14:02 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2005-04-27 05:30:33
If the visible attribute of the Link widget is set to false. The following error
is displayed: "image object for xxx not found?".

Possible solution: 
Add following two lines to InitDefaults:
 if (!$this->mbVisible)
                return ;
------- Comment #1 From 2005-05-04 10:00:17 -------
 -- just out of curiosity, is there a real use for making a Link widget hidden
or is it just to remove it temporarily from a template? --

I will commit a fix for this to cvs (version 2.1 - not 2.0) shortly.
------- Comment #2 From 2005-05-04 10:58:50 -------
In the application I am working on, visibility of some widgets depend on the
rights of the user that has logged in.
------- Comment #3 From 2005-05-04 11:53:09 -------
perfect answer!  I had never considered that but it is an excellent use of this
feature.
------- Comment #4 From 2006-02-15 12:13:03 -------
Looking to this one.
------- Comment #5 From 2006-02-15 14:02:33 -------
I tested the Link widget with the attribute set to false and no error comes out.
 There is no JavaScript error and no PHP error as well.  I tested on Linux.

I checked in the widget code and the fix has been applied.  So this bug is
already fixed but not marked as such.