I added some extra fields to the existing Network Device model, maintenance_cost and updated the DB schema for this field. Below is the attribute I added:
I have looked into the code. This symptom could be encountered if the declaration of the new attribute is made out of the Init() function of the class.
Please, make sure that any new attribute be declared in the same function as the other ones:
Hi everyone,
I added some extra fields to the existing Network Device model, maintenance_cost and updated the DB schema for this field. Below is the attribute I added:
I then imported devices and values inserted into this field, but when ever I click on the device to show the details I get the following error:
Notice: Undefined index: maintenance cost in C:\wamp\www\itop1.0\core\metamodel.class.php on line 593
Fatal error: Call to a member function GetLabel() on a non-object in C:\wamp\www\itop1.0\core\cmdbchangeop.class.inc.php on line 216
What am I doing wrong? Any help with this would be greatly appreciated :)
Hi,
I have looked into the code. This symptom could be encountered if the declaration of the new attribute is made out of the Init() function of the class.
Please, make sure that any new attribute be declared in the same function as the other ones: