#286 Computer_type Dropdown will not retain data

General
open
nobody
IRM-stable (58)
5
2006-09-26
2006-09-26
Anonymous
No

IRM 1.5.7 on Ubuntu Dapper LAMP: MySQL version 5.0.22,PHP 5

System: Gigabyte/Athlon 64 1 gb ram

While all other dropdown items perform as expected in
added inventory, the computer_type dropdown does not
retain the set value in the inventoried item. It
reverts to the first entry in the field. This seemed to
occur after 12 items were inventoried correctly, all
other items default to the first item in the dropdown.
subsequent edits on any inventoried item cause this to
happen.

Discussion

  • Logged In: NO

    Had this problem also (Fedora 5). Upgrading to 1.5.8-dev
    seems to have fixed the problem.

     
  • Logged In: NO

    Bue the actual version: 1.5.7 have the problem: What is the
    patch?

     
  • nadie
    nadie
    2006-10-27

    Logged In: YES
    user_id=768726

    But in version 1.5.7 it doesn't works. What is the patch?

    I test it on Ubuntu Server (Dapper), and I discover the
    problem appears with PHP5. When you enable PHP4 it works
    fine, but with PHP5 there is a problem.

    In the DB it save well, but when IRM show computer
    information, the type doesn't appear well. It show the the
    first entry in the field. So if you modify and update
    without change to the correct value: the database change ;)

     
  • ihackney
    ihackney
    2006-11-10

    Logged In: YES
    user_id=1642299

    I had the same problem on PHP5 running MAMP.

    Managed to fix it by adding the following line to the
    showComputer($ID, $expand) function in
    /include/computers.functions.php:

    $type = $result["type"];

    Added this line below $date_mod = $result["date_mod"]; about
    9 lines into the function.