Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Bug mit API Addon 1.15

    Scheduled Pinned Locked Moved Betrieb
    3 Posts 2 Posters 385 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      spirit21ms
      last edited by

      Hi zusammen,
      es scheint einen Bug mit der API ab Version 1.15 zu geben, durch den alle Objekte die COndition und den Status 0 haben. Nachgestellt haben wir das Problem auf dem Demo I-doit:81f75e24-2d7e-4b11-ab67-ebef9e1169c3-image.png

      Wir uns haben wir das Problem behoben durch Zurückrollen auf Version 1.14.1
      LG
      Simon

      LFischerL 1 Reply Last reply Reply Quote 0
      • LFischerL Offline
        LFischer @spirit21ms
        last edited by

        Hallo @spirit21ms

        der Bug ist uns bereits bekannt und kann mit nur einer kleinen Änderung repariert werden. Dazu müsste die Zeile 148 in der Datei {i-doit}/src/classes/modules/api/model/isys_api_model_cmdb.class.php getauscht werden.

        Diese Zeile

        $l_return[$l_map] = $routeGenerator->generate('cmdb.object-type.image', ['objectTypeId' => $p_mapping['isys_obj__isys_obj_type__id']]);
        

        Muss durch diese hier ersetzt werden

        $l_return[$l_map] = $routeGenerator->generate('cmdb.object-type.image', ['objectTypeId' => $p_row['isys_obj__isys_obj_type__id']]);
        

        Der Fix wird natürlich auch in der nächsten API Version gelöst sein.

        Viele Grüße
        Leo

        S 1 Reply Last reply Reply Quote 1
        • S Offline
          spirit21ms @LFischer
          last edited by

          @LFischer Alles klar, danke!

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post