Remove "Select Database" if only one

Most commonly desired features to be implemented in PacsOne
Post Reply
vtphilk
Posts:14
Joined:Wed Aug 22, 2012 6:35 am
Remove "Select Database" if only one

Post by vtphilk » Wed Jan 02, 2013 8:16 am

Why does the login page have the select database if only one DB is in use? I would imagine this would be an easy change that if only one DB exists to not display the dropdown.

Doctors can be picky sometimes and confuse easily :)

vtphilk
Posts:14
Joined:Wed Aug 22, 2012 6:35 am

Post by vtphilk » Wed Jan 02, 2013 8:20 am

FYI.. I worked around this by:

Comment out (Insert in beginning of line "//") the following line numbers in login.php (PACSONE 6.3.5):
79, 82, 87, 93

Then added the following under line 93:

Code: Select all

 print "<input type='hidden' name='formDatabase' value='$db'></input>";

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Wed Jan 02, 2013 4:47 pm

This is a great idea and we'll implement it (i.e., change the drop-down list into a read-only text field if there's only 1 selection) for the next release (6.3.6) of PacsOne Server.

Post Reply