Super-Visions / sv-auto-dispatch

iTop Auto dispatch tickets
GNU Affero General Public License v3.0
0 stars 3 forks source link

Error loading module "sv-auto-dispatch" #4

Closed JuniorFerrari closed 6 months ago

JuniorFerrari commented 6 months ago

I updated itop to 3.1.0 and an error started appearing Error loading module "sv-auto-dispatch": /field[provider_id] at line 99 could not be added : already exists in /itop_design/classes/class[cmdbAbstractObject]/class[lnkCustomerContractToService]/fields/field[provider_id] at line 2204 - Loaded modules: dictionaries:1.0, core:1.0, application:1.0, authent-cas:3.1.0, authent-external:3.1.0, authent-local:3.1.0, combodo-autoclose-ticket:1.0.1, combodo-backoffice-darkmoon-theme:3.1.0, combodo-cmdbchange-cleaner:1.0.4, combodo-email-synchro:3.6.0, combodo-password-expiration:1.0.1, combodo-workflow-graphical-view:1.1.0, itop-attachments:3.1.0, itop-backup:3.1.0, itop-config:3.1.0, itop-data-collector-ldap:1.0.7, itop-files-information:3.1.0, itop-object-copier:1.4.3, itop-portal-base:3.1.0, itop-portal:3.1.0, itop-profiles-itil:3.1.0, itop-sla-computation:3.1.0, itop-standard-email-synchro:3.4.2, itop-stencils:1.0.6, itop-structure:3.1.0, itop-themes-compat:3.1.0, itop-tickets:3.1.0, itop-welcome-itil:3.1.0, molkobain-portal-mosaic-service-catalog:1.0.0, templates-base:3.5.1, authent-token:2.1.1, combodo-db-tools:3.1.0, itop-config-mgmt:3.1.0, itop-core-update:3.1.0, itop-datacenter-mgmt:3.1.0, itop-endusers-devices:3.1.0, itop-faq-light:3.1.0, itop-hub-connector:3.1.0, itop-incident-mgmt-itil:3.1.0, itop-knownerror-mgmt:3.1.0, itop-oauth-client:3.1.0, itop-problem-mgmt:3.1.0, itop-request-mgmt-itil:3.1.0, itop-service-mgmt:3.1.0, itop-storage-mgmt:3.1.0, itop-virtualization-mgmt:3.1.0, prefill-extension:1.0.0, combodo-dispatch-userrequest:1.2.0, combodo-oauth-email-synchro:1.1.0, combodo-saml:1.1.1, combodo-webhook-integration:1.3.1, itop-bridge-cmdb-services:3.1.0, itop-bridge-cmdb-ticket:3.1.0, itop-bridge-datacenter-mgmt-services:3.1.0, itop-bridge-endusers-devices-services:3.1.0, itop-bridge-storage-mgmt-services:3.1.0, itop-bridge-virtualization-mgmt-services:3.1.0, itop-bridge-virtualization-storage:3.1.0, itop-change-mgmt-itil:3.1.0, itop-full-itil:3.1.0, itop-request-template:2.3.1, sv-auto-dispatch:1.1.0

I updated combodo-dispatch-userrequest/1.2.0

    'dependencies' => array(
        'combodo-dispatch-userrequest/1.2.0||combodo-dispatch-incident/1.2.0',
        'itop-service-mgmt/3.1.0||itop-service-mgmt-provider/3.1.0',
    ),
Hipska commented 6 months ago

Okay, this module has not been tested on iTop 3.1 yet. Does it work when you change the following line: https://github.com/Super-Visions/sv-auto-dispatch/blob/1eee04c658834a8e835d9e9d122fccfd25d87c2a/datamodel.sv-auto-dispatch.xml#L99 to

  <field id="provider_id" xsi:type="AttributeExternalField" _delta="define_if_not_exists">
JuniorFerrari commented 6 months ago

yes it works thanks

Hipska commented 6 months ago

Fixed with v1.1.1.