Am Montag, 20. August 2012, 15:08:48 schrieb Dr. Christoph Hermann:

Hallo,

also inzwischen habe ich des Rätsels Lösung gefunden, bzw. einen
Workaround/Fix implementiert:

> Benutzt man die gewöhnliche FAQ-Suche ist eine weitere Spalte mit der
> FAQ-ID  enthalten, welche den benötigten MasterActionLink enthält:
>
> -------------------
> <tr class="MasterAction Even" id="ItemID_55_">
>
>                 <td>
>
>                     <a class="MasterActionLink" title="420055"
> href="/otrs/index.pl?Action=AgentFAQZoom;ItemIDU;Nav=">
>                         420055

> [snip]

> Jetzt stellt sich mir nur die Frage, warum die Spalte im einen Fall
> eingefügt  wird und im anderen nicht.

Bei der "normalen" FAQ Suche wird AgentFAQExplorer.pm ausgeführt, bei der im
Popup eingebundenen Suche wird AgentFAQSearchSmall.pm ausgeführt.

Der Unterschied ist nun, dass in ersterem die "ID"-Spalte auf jeden Fall
ausgegeben wird, da diese den MasterActionLink enthält. Die entsprechenden
vier zeilen fehlen (hier) in der AgentFAQSearchSmall.pm.

Folgender Patch behebt das Problem:
--------------------------------
hermann@otrs:/opt/otrs/Kernel/Modules$ diff -c AgentFAQSearchSmall.pm.orig
AgentFAQSearchSmall.pm
*** AgentFAQSearchSmall.pm.orig Mon Sep 10 16:01:52 2012
--- AgentFAQSearchSmall.pm      Mon Sep 10 16:02:17 2012
***************
*** 254,259 ****
--- 254,265 ----
                  next COLUMNNAME if !$PossibleColumn{$Name};
                  push @ShowColumns, $Name;
              }
+
+             # enforce FAQ number column since is the link MasterAction hook
+           if ( !$PossibleColumn{'Number'} ) {
+               push @ShowColumns, 'Number';
+           }
+
          }

          $Output .= $Self->{LayoutObject}->FAQListShow(
hermann@otrs:/opt/otrs/Kernel/Modules$
--------------------------------

Viele Grüße
Christoph Hermann

--
Dr. Christoph Hermann
Institut für Informatik
Tel: +49 761-203-8171 Fax: +49 761-203-8142
E-Mail: [email protected]

Attachment: smime.p7s
Description: S/MIME cryptographic signature

---------------------------------------------------------------------
OTRS mailing list: otrs-de - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs-de
To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs-de

Antwort per Email an