Nach SYS_ID und Inventarnummer nicht durchsuchbar?
-
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?
-
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"
); -
vielen dank funktioniert!
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