Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-2006

Islandora Solr Metadata truncation breaks on whole field truncation for empty values attempting to be displayed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.x-1.9
    • Fix Version/s: 7.x-1.10
    • Component/s: Solr Metadata, Solr Search
    • Labels:
      None

      Description

      Well, that's a mouthful.

       

      The problem lives in this function here... or really, more precisely it lives here. This function return signature is kind of a lie. There's nothing in the function to handle if you have 0 values for display. If you have more than 0, you get back a string. If you don't, you get back an array.

       

      This causes a problem waaaaay down the line where $value['value'] is not an array containing strings, but rather an array containing arrays, which implode() really dislikes.

       

      We can rectify this easily by making sure that islandora_solr_truncate_field_display() always returns a string, like it says it's supposed to.

        Attachments

          Activity

            People

            • Assignee:
              daitken Daniel Aitken
              Reporter:
              daitken Daniel Aitken
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: