Lars Olafsen - 2014-04-15

Hi

I have a custom module that redefines cost_currency as per ticket #414 :

<itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
  <classes>
    <class id="Contract">
      <fields>
        <field id="cost_currency" xsi:type="AttributeEnum" _delta="redefine">
          <values>
            <value>USD</value>
            <value>EUR</value>
            <value>NOK</value>
            <value>SEK</value>
            <value>DKK</value>
            <value>GBP</value>
          </values>
          <sql>cost_currency</sql>
          <default_value/>
          <is_null_allowed>true</is_null_allowed>
          <display_style>list</display_style>
        </field>
      </fields>
    </class>
  </classes>
</itop_design>

This redefinition works well in 2.0.1, but when upgrading to 2.0.2 the process fails with:

"Error: Error loading module "rl-module": could not find node for class(id:Contract) - Loaded modules: authent-external,authent-ldap,authent-local,itop-attachments,itop-bridge-virtualization-storage,itop-config-mgmt,itop-datacenter-mgmt,itop-endusers-devices,itop-profiles-itil,itop-sla-computation,itop-storage-mgmt,itop-tickets,itop-virtualization-mgmt,itop-welcome-itil,rl-module"

The (service-mgmt) module in question seems to be loaded however - it is included in the $MyModules array in the config-itop.php file and is visible as a Service Management element in the left-hand menu.

Any ideas?