Index: branches/RC/core/units/custom_fields/custom_fields_tag_processor.php
===================================================================
diff -u -N -r10796 -r10885
--- branches/RC/core/units/custom_fields/custom_fields_tag_processor.php (.../custom_fields_tag_processor.php) (revision 10796)
+++ branches/RC/core/units/custom_fields/custom_fields_tag_processor.php (.../custom_fields_tag_processor.php) (revision 10885)
@@ -89,8 +89,12 @@
$this->groupRecords($list->Records, 'Heading');
}
+ $i = 0;
while (!$list->EOL())
{
+ $block_params['is_last'] = ($i == $list->SelectedCount - 1);
+ $block_params['not_last'] = !$block_params['is_last']; // for front-end
+
$this->Application->SetVar( $this->getPrefixSpecial().'_id', $list->GetDBField($id_field) ); // for edit/delete links using GET
if ($source_prefix) {
@@ -108,6 +112,7 @@
$o.= $this->Application->ParseBlock($block_params, 1);
$prev_heading = $list->GetDBField('Heading');
$list->GoNext();
+ $i++;
}
$this->Application->SetVar( $this->getPrefixSpecial().'_id', '');
Index: branches/RC/core/admin_templates/stylesheets/stylesheets_list.tpl
===================================================================
diff -u -N -r8929 -r10885
--- branches/RC/core/admin_templates/stylesheets/stylesheets_list.tpl (.../stylesheets_list.tpl) (revision 8929)
+++ branches/RC/core/admin_templates/stylesheets/stylesheets_list.tpl (.../stylesheets_list.tpl) (revision 10885)
@@ -63,10 +63,6 @@
-
- |
-
-