Bug #23599 Bug Fixed

Searchable data for Fluid field isn’t updated after entry save

Version: 4.2.1 Reporter: Low

I’ve got a Fluid field, which contains several other fields, including a regular Textarea field, which is set to be searchable. When I update the field and hit save, the searchable text in the DB for that Fluid field is not updated and the native Search module will not return the entry with a term that was just entered. When I hit save again, the data is updated with the previous content, but not with any new changes that might have occurred.

So, workflow:

  • Open entry X
  • Text in textarea in fluid field is “lorem ipsum”
  • I do a simple search for “lorem”
  • Entry X is returned
  • I change the textarea in fluid field to “dolor sit amet”
  • I click Save
  • I do a simple search for “dolor”
  • Entry X is not returned
  • I change the textarea in fluid field to “dolor sit amet foobar”
  • I click Save
  • I do a simple search for “dolor”
  • Entry X is returned
  • I do a simple search for “foobar”
  • Entry X is not returned

This might be related to this bug.

  • Thanks for catching this. I have posted a solution to the bug and have a patch in for the next release.

    Seth Barber
    09th May, 2018 at 11:30am

You must be signed in to comment on a bug report.

  • In system/ee/EllisLab/Addons/fluid_field/ft.fluid_field.php replace line 176 with:

    foreach ($value as $field_data)
    {
        $field->setData($field_data);
        $compiled_data_for_search[] = $field->save($field_data);
    }

ExpressionEngine News

#eecms, #events, #releases