#1060 With LeftFrameLight, select box doesn't display on home page

closed-invalid
Marc Delisle
None
5
2007-11-02
2007-10-17
Steve Cleveland
No

Since 2.11 came out, I've had this problem. I've searched the bug reports, but I haven't found anyone else report it. It still exists in 2.11.1.2, so I'm filing a report.

This is with LeftFrameLight enabled (which is default).

When first logging in, or, when clicking the Home link, the select box for the databases isn't there, instead there is just a basic unsorted list (<ul>). But as soon as I select a database, then I get a proper <select> list with all of the databases.

This is with multiple database servers. Besides $cfg['Servers'], the only settings I have defined are:

$cfg['LeftDisplayLogo'] = FALSE;
$cfg['LeftDisplayServers'] = TRUE;
$cfg['ShowChgPassword'] = TRUE;
$cfg['QueryHistoryDB'] = TRUE;
$cfg['LoginCookieValidity'] = 604800;

It works fine in 2.10.3.

The server select box looks fine.

The HTML code when it's not working looks like this:

<ul id="databaseList" xml:lang="en" dir="ltr">
<li><a href="index.php?db=adviseSched&amp;token=116d36bcd54779acaff0c8366b647521" target="_parent">adviseSched (15)</a></li>
<li><a href="index.php?db=calendar&amp;token=116d36bcd54779acaff0c8366b647521" target="_parent">calendar (24)</a></li>
<li><a href="index.php?db=cbee_resources&amp;token=116d36bcd54779acaff0c8366b647521" target="_parent">cbee_resources (4)</a></li>
<li><a href="index.php?db=cce_gradref&amp;token=116d36bcd54779acaff0c8366b647521" target="_parent">cce_gradref (5)</a></li>
<li><a href="index.php?db=ce_resources&amp;token=116d36bcd54779acaff0c8366b647521" target="_parent">ce_resources (4)</a></li>
<li><a href="index.php?db=che_resources&amp;token=116d36bcd54779acaff0c8366b647521" target="_parent">che_resources (8)</a></li>
...
</ul>

After selecting a database, the HTML code looks like this:

<select name="db" id="lightm_db" xml:lang="en" dir="ltr" onchange="if (this.value != '') window.parent.openDb(this.value);">

<option value="" dir="ltr">(Databases) ...</option>
<option value="adviseSched" title="">adviseSched (15)</option>
<option value="calendar" title="" selected="selected">calendar (24)</option>
<option value="cbee_resources" title="">cbee_resources (4)</option>
<option value="cce_gradref" title="">cce_gradref (5)</option>
<option value="ce_resources" title="">ce_resources (4)</option>
<option value="che_resources" title="">che_resources (8)</option>
...
</select>

Discussion

  • Marc Delisle
    Marc Delisle
    2007-10-17

    • assigned_to: nobody --> lem9
    • status: open --> pending-invalid
     
  • Marc Delisle
    Marc Delisle
    2007-10-17

    Logged In: YES
    user_id=210714
    Originator: NO

    Well, this is not a bug, it's intentional behavior. From ChangeLog:
    RFE #1435922 [gui] navigation frame shows listing of databases when none selected

     
  • Logged In: YES
    user_id=459015
    Originator: YES

    Hmm... OK. Seems like a strange feature. If I want a list of databases, I'd just turn off the LeftFrameLight option, wouldn't I? With dozens of databases, it really doesn't work very well. And then the presentation completely changes when I select a database. That change in presentation and very plain HTML really makes it look like a bug.

    Is there a way to at least get a config option to use the old behavior?

    Thanks,
    - Steve

     
    • status: pending-invalid --> open-invalid
     
  • Marc Delisle
    Marc Delisle
    2007-10-18

    • labels: 317619 -->
    • milestone: 769534 -->
    • status: open-invalid --> pending-invalid
     
  • Marc Delisle
    Marc Delisle
    2007-10-18

    Logged In: YES
    user_id=210714
    Originator: NO

    Read Documentation.html:
    "$cfg['DisplayDatabasesList'] boolean or text
    Defines whether to display database choice in light navigation frame as links instead of in a drop-down. Defaults to 'auto' - on main page list is shown, when database is selected, only drop down is displayed."

    try to set it to false.

     
  • Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending-invalid --> closed-invalid