Bug in search module?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BulliM
    Senior Member
    • Oct 2012
    • 497

    Bug in search module?

    I found a bug in search module, I guess. Fresh installed 5.3.1, upgraded to 5.3.2 and 5.3.2 patch level 1. Bug was already in 5.3.1.

    My search module for new topics displays attachments as comments, when "view" isn't set (default). I don't set { "include_attach":"1" } or so. Here's my JSON search string:

    Code:
    {"type":["vBForum_Event","vBForum_Gallery","vBForum_Link","vBForum_Photo","vBForum_Poll","vBForum_Text","vBForum_Video"],"channel":{"param":"channelid"},"sort":{"null":null},"view":"","exclude_type":["vBForum_PrivateMessage"]}
    Can anyone confirm this?
  • bridge2heyday
    New Member
    • Aug 2014
    • 3
    • 5.0.X

    #2
    I can see in the code that include_attach is automatically enabled if you include photo in content types
    PHP Code:
    $photocontentypeid vB_Api::instanceInternal('contenttype')->fetchContentTypeIdFromClass('Photo');
         if (
    in_array($photocontentypeid$contentypeids))
         {
             
    $search_structure['include_attach'] = 1;
          } 

    Comment

    • BulliM
      Senior Member
      • Oct 2012
      • 497

      #3
      Hm... but attach is contenttype 15, picture 9. And default for include_attach is 0. The code explains, why attach named as comment and couldn't exclude by contenttypeid. What's the file name?

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 74078

        #4
        All photos are also attachments. Each attachment is a node. Each reply and comment is also a node. If you feel it is a bug, then you will need to post it in JIRA here:
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment

        • BulliM
          Senior Member
          • Oct 2012
          • 497

          #5
          Originally posted by Wayne Luke
          All photos are also attachments. Each attachment is a node. Each reply and comment is also a node. If you feel it is a bug, then you will need to post it in JIRA here:
          http://tracker.vbulletin.com/secure/...91&issuetype=1
          Sure it's a bug. Because every single one of my attachments are displayed as new comment to my post. That is not right. But actually I have no time for JIRA. I just work at a new vB5. Maybe in three weeks I have time for JIRA. Can anyone else do that?

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...