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

    Nach SYS_ID und Inventarnummer nicht durchsuchbar?

    Scheduled Pinned Locked Moved Betrieb
    3 Posts 2 Posters 1.4k 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.
    • C Offline
      cschaefer
      last edited by

      Hallo zusammen,

      habe eben gemerkt, dass in meiner 0.9.9 idoit installation sowohl nicht nach der SYS_ID als auch nicht nach der Inventarnummer (unter Buchhaltung) gesucht wird. Was ist da der Hintergrund?

      1 Reply Last reply Reply Quote 0
      • G Offline
        gr
        last edited by

        Hallo cschaefer,

        für die Suche nach SyS_ID wurde schon mal die Lösung hier beschrieben: http://www.i-doit.org/forum/index.php/topic,1376.0.html

        Hier noch mal die paar Zeilen:

        In der Datei /src/classes/cmdb/dao/category/global/isys_cmdb_dao_category_g_global.class.php finde das Array $m_filter. In das Array $m_filter ist noch die Zeile hier hinzufügen:

        "isys_obj__sysid" => "SYSID"

        Also das ganze Array sieht wie folgt aus:

        protected $m_filter =
              array(  
                    "isys_obj__title"                    =>   "LC__CMDB__LOGBOOK__TITLE",
                   "isys_obj__description"            =>   "LC__CMDB__LOGBOOK__DESCRIPTION",
                   "isys_obj__imported"               =>   "LC__CMDB__LOGBOOK__DESCRIPTION",
                    "isys_obj__hostname"             =>   "LC__CATP__IP__HOSTNAME",
                    "isys_obj__created"                => "LC__LOGBOOK__OBJECT_CREATED",
                    "isys_obj__created_by"           => "LC__UNIVERSAL__CREATED_BY",
                    "isys_obj__updated"               => "LC__UNIVERSAL__UPDATED",
                    "isys_obj__updated_by"          => "LC__UNIVERSAL__UPDATED_BY",
                    "isys_obj__logical"                  => "LC__UNIVERSAL__LOGICAL",
                    "isys_obj__sysid"                    => "SYSID"            
              );

        Für Inventarnummer, finde die Datei /src/classes/cmdb/dao/category/global/isys_cmdb_dao_category_g_accounting.class.php

        In der Datei gibt es ein Array $m_filter (ab Zeile 21). In das Array ist die folgende Zeile hinzufügen:

        "isys_catg_accounting_list__inventory_no" => "LC__CMDB__CATG__ACCOUNTING_INVENTORY_NO"

        So sieht das Array danach aus:

        protected $m_filter =

        array( "isys_catg_accounting_list__order_no" => "LC__CMDB__CATG__GLOBAL_ORDER_NO",
          "isys_catg_accounting_list__guarantee_period" => "LC__CMDB__CATG__GLOBAL_GUARANTEE_PERIOD",
          "isys_catg_accounting_list__acquirementdate" => "LC__UNIVERSAL__ACQUIREMENTDATE",
          "isys_catg_accounting_list__price" => "LC__CMDB__CATG__GLOBAL_PRICE",
          "isys_catg_accounting_list__description"        => "LC__CMDB__LOGBOOK__DESCRIPTION",
          "isys_account__title" => "LC__CMDB__LOGBOOK__TITLE",
        "isys_guarantee_period_unit__title" => "LC__CMDB__LOGBOOK__TITLE",
          "isys_catg_accounting_list__inventory_no" => "LC__CMDB__CATG__ACCOUNTING_INVENTORY_NO"
          );

        1 Reply Last reply Reply Quote 0
        • C Offline
          cschaefer
          last edited by

          vielen dank funktioniert!

          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