Skip to content

Commit

Permalink
Merge pull request #7 from rowan-lewis/master
Browse files Browse the repository at this point in the history
Was causing issues with the Subsection Manager
  • Loading branch information
nickdunn committed Jun 7, 2011
2 parents 15831d8 + 4e3b9e9 commit 32dd39d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fields/field.publish_tabs.php
Expand Up @@ -47,6 +47,9 @@ public function prepareTableValue($data, XMLElement $link=NULL, $entry_id=NULL)

// get the first field inside this tab
$field_id = Symphony::Database()->fetchVar('id', 0, "SELECT `id` FROM `tbl_fields` WHERE `parent_section` = '".$this->get('parent_section')."' AND `sortorder` = ".($this->get('sortorder') + 1)." ORDER BY `sortorder` LIMIT 1");

if ($field_id === null) return parent::prepareTableValue(null, $link, $entry_id);

$field = $em->fieldManager->fetch($field_id);

// get the first field's value as a substitude for the tab's return value
Expand Down

0 comments on commit 32dd39d

Please sign in to comment.