Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.
I am trying to add a new text field to the Computers page. We want a text field to enter the User of the computer. We do not want to use the employee button for anyone except the IT deparment members. So far:
I have added the following line to the modules/Computers/edit.php:
$form->addElement('text', 'computer_User', lUSER.':',array('size'=>30));
I added the following info to the inc/classes/Computers.php:
var $User; // string(100)
I also created the table "User" in the Computers part of the database.
The text put into the field will not save, and I get the following error when I try to check the box to make the User column visible in the computer list:
DB_DataObject Error: joinAdd: called without an object
Any help would be appreciated. I am very much a noob. I did all these changes by reading other posts. But now I am against the wall.
Add the field to /inc/schema/openit.ini
ex: User = 2