Menu

#1018 Extension in 2.0.3: Unknown class - classes

Unassigned
not-a-bug
nobody
None
User Interface
Critical
2.0.3
defect
2014-11-26
2014-11-12
isaac
No

Hi,

I have posted this in the forum bevor, and now decided this is a bug: https://sourceforge.net/p/itop/discussion/922360/thread/7815f049/

I have written a simple itop extension module, which adds another option to the ticket drop down menu "origin". I can install it in itop 2.0.1 and it works, but when I try to install it in itop 2.0.3, I get "Unknown class - classes" at 80% upgrading the database.

Also, when I install it in 2.0.1 and try to upgrade, the extension is deselected.

I have attached the extension.

1 Attachments

Discussion

  • Denis

    Denis - 2014-11-12

    According to your "module" files, the file 'datamodel.acme-origin.xml' is supposed to contain some "structural data" to be loaded when the module is installed.

    Don't mix the data model (i.e. "schema") with the data to be loaded in iTop.

    The section to change is the following in module.xxxx.php:

            'data.struct' => array(
                // add your 'structure' definition XML files here,
                'datamodel.acme-origin.xml',
            ),
    

    Simply change it to:

            'data.struct' => array(
            ),
    

    And it will pass.

     
  • isaac

    isaac - 2014-11-12

    True :) ... so the "bug" is in itop 2.0.1, as it accepted my faulty module. Thank you for your help.

     
  • Erwan Taloc

    Erwan Taloc - 2014-11-26
    • status: new --> not-a-bug
     

Log in to post a comment.