pamelanye / libstats

Automatically exported from code.google.com/p/libstats
GNU General Public License v2.0
1 stars 0 forks source link

Problem changing locations and patron types. etc.. it's like the save button is not changing the database #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Admin -->
2. Add/Edit Locations -->
3. New --> --> Name:Ref Desk 1 Class:None  Description: ask here by 
elevator Examples: None Click Save
4. The new location is not created

What is the expected output? What do you see instead?
I expect to see the new location called "ref desk1" but it does not 
display. This also happens under patron type

What version of the product are you using? On what operating system?

Most current version /php5 mysql5 php:DB Apache
Please provide any additional information below.

.Problem changing locations and patron types. etc.. it's like the save 
button is not changing the database

Original issue reported on code.google.com by cauley.s...@gmail.com on 27 Aug 2008 at 1:40

GoogleCodeExporter commented 8 years ago
Gerald Teano, Webmaster from the Laramie County Library System fixed this issue 
with 
this code: 

Go to the finders folder and open LibraryFinder.php.

Go to line 54.  Edit from....

   function addLibrary($option_pk, $short_name, $full_name) {

               // Just add it... it should be easy ;-)
       $table = 'libraries';
               $field_values = array(
                       'library_id' => '',
                       'full_name' => $full_name,
                       'short_name' => $short_name
               );

to

   function addLibrary($option_pk, $short_name, $full_name) {

               // Just add it... it should be easy ;-)
       $table = 'libraries';
               $field_values = array(
                       'full_name' => $full_name,
                       'short_name' => $short_name
               );

gteano@gmail.com

Original comment by cauley.s...@gmail.com on 7 May 2009 at 8:34

GoogleCodeExporter commented 8 years ago
We were running php5/phpdb/ mysql/apache on Windows server 2003.  This may not 
happen on linux/unix based machines.

Shane Cauley
network lead technician
Laramie County Library System 

Original comment by cauley.s...@gmail.com on 7 May 2009 at 8:36