mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Moved automatic adding of record-number to the page-title into EditObserver() method for easy overriding.
This commit is contained in:
@@ -2183,10 +2183,7 @@ class e_admin_controller
|
|||||||
|
|
||||||
// e107::getDebug()->log("Admin-ui Action: <b>".$action."</b>");
|
// e107::getDebug()->log("Admin-ui Action: <b>".$action."</b>");
|
||||||
|
|
||||||
if($action === 'Edit')
|
|
||||||
{
|
|
||||||
$this->addTitle('#'.$this->getId()); // Inform user of which record is being edited.
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -6020,6 +6017,7 @@ class e_admin_ui extends e_admin_controller_ui
|
|||||||
{
|
{
|
||||||
$this->getModel()->load($this->getId());
|
$this->getModel()->load($this->getId());
|
||||||
$this->addTitle();
|
$this->addTitle();
|
||||||
|
$this->addTitle('#'.$this->getId()); // Inform user of which record is being edited.
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user