Ticket #425 (closed defect: fixed)
add slots at bottom defect
| Reported by: | martin79 | Owned by: | boutell |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4.1 |
| Component: | apostrophePlugin | Version: | |
| Keywords: | Cc: | ||
| Symfony version: | 1.4 |
Description
To add slots at bottom with setting: "app_a_new_slots_top" does not work anymore.
To fix add in BaseaSlotActions::editSave() the parameter 'top' for calling newAreaVersion.
Like this:
class FixedBaseaSlotActions? extends BaseaSlotActions?
{
protected function editSave()
{
$this->slot->save();
$this->page->newAreaVersion(
$this->name,
$this->newSlot ? 'add' : 'update',
array('permid' => $this->permid, 'slot' => $this->slot, 'top' => sfConfig::get('app_a_new_slots_top', true)));
if ($this->getRequestParameter('noajax'))
{
return $this->redirectToPage();
}
else
{
return $this->editAjax(false);
}
}
}

