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

    Fehler nachdem Anlegen einer eigenen Kategorie

    Scheduled Pinned Locked Moved Entwicklung
    4 Posts 4 Posters 1.5k 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.
    • G Offline
      georg
      last edited by

      Habe bei uns im System und auf der Pro-Demo Version von i-doit. 0.998  eine "Benutzerdefinierte Kategorie" für ein Obkjekt angelegt.
      Die Anlage der "benutzerdefinierten Kategorie" und "Benutzerdefinierte Felder" hat auch funktioniert.
      Auch wenn ich das Objekt aufrufe ist die benutzerdefinierte Kategroie vorhanden.

      Bei dem Versuch die Eingaben zu speichern kommt immer ein Fehler:

      Nachricht:
      Database error : Query error: 'INSERT INTO isys_catg_custom_fields_list SET isys_catg_custom_fields_list__isys_obj__id = '6500', isys_catg_custom_fields_list__isysgui_catg_custom__id = '2', isys_catg_custom_fields_list__field_key = '', isys_catg_custom_fields_list__field_content = '', isys_catg_custom_fields_list__field_type = '', isys_catg_custom_fields_list__status = ''2'', isys_catg_custom_fields_list__description = '' ;':
      You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2'', isys_catg_custom_fields_list__description = ''' at line 1

      Gruss Georg

      1 Reply Last reply Reply Quote 0
      • O Offline
        oda
        last edited by

        Habe den Fehler auch schon gemeldet und hält uns atm noch davon ab auf 0.9.9.8 Pro oder Open (wenn es die irgendwann raus kommt) zu wechseln.
        Hilft nur ein downgrade auf 0.9.9.7.

        1 Reply Last reply Reply Quote 0
        • F Offline
          freddy
          last edited by

          Fehler hatten wir auch, konnten ihn aber selber fixen:
          http://forum.i-doit.org/index.php/topic,2677.0.html

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

            Hallo,
            der Fehler ist in der aktuellen Entwicklungs-Version bereits behoben und wird im nächsten Release nicht mehr auftauchen!

            Um den Fehler selbst zu beheben braucht ihr nur zwei Zeilen, die für die doppelten Anführungszeichen verantwortlich sind, zu ändern:

            In der Datei: /src/classes/cmdb/dao/category/global/isys_cmdb_dao_category_g_custom_fields.class.php auf Zeile 54 und 245:

            aus

            // Zeile 54
            "isys_catg_custom_fields_list__status = '" . $this->convert_sql_int($p_status) . "', " .
            // Zeile 245
            "isys_catg_custom_fields_list__status = '".$p_status."', ".
            

            muss

            // Zeile 54
            "isys_catg_custom_fields_list__status = " . $this->convert_sql_int($p_status) . ", " .
            // Teile 245
            "isys_catg_custom_fields_list__status = " . $this->convert_sql_int($p_status) . ", ".
            

            werden (die einfachen Hochkommas im Query-String entfernen).

            Gruß,
            LFischer

            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