diff --git a/symphony/content/content.publish.php b/symphony/content/content.publish.php
index <HASH>..<HASH> 100755
--- a/symphony/content/content.publish.php
+++ b/symphony/content/content.publish.php
@@ -211,7 +211,9 @@
 
 							$field = $entryManager->fieldManager->fetch($associated_sections[$key]['child_section_field_id']);
 
-							$search_value = ($associated_sections[$key]['parent_section_field_id'] ? $field->fetchAssociatedEntrySearchValue($entry->getData($associated_sections[$key]['parent_section_field_id'])) : $entry->get('id'));
+							$parent_section_field_id = $associated_sections[$key]['parent_section_field_id'];
+
+							$search_value = (!is_null($parent_section_field_id) ? $field->fetchAssociatedEntrySearchValue($entry->getData($parent_section_field_id), $parent_section_field_id) : $entry->get('id'));
 
 							$associated_entry_count = $field->fetchAssociatedEntryCount($search_value);
When finding search value for linked sections, the parent section field ID is now passed into Field::fetchAssociatedEntrySearchValue()