1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 20:31:41 +02:00

Fix for plugins extending admin-ui. Record ID was missing in 'create' mode. $id is now sent as a separate parameter to the "process" method. See e107_plugins/social/e_admin.php for an example.

This commit is contained in:
Cameron
2015-12-12 00:16:16 -08:00
parent 72aa50b7d7
commit e83b0c531a
3 changed files with 22 additions and 12 deletions

View File

@@ -57,10 +57,14 @@ class social_admin
* Process Posted Data.
* @param $ui admin-ui object
*/
public function process($ui)
public function process($ui, $id=0)
{
$data = $ui->getPosted();
$action = $ui->getAction(); // current mode: create, edit, list
//e107::getHybridAuth('twitter');
e107::getMessage()->addDebug("e107_plugins/social/e_admin.php :: process method called.");
e107::getMessage()->addDebug("ID: ".$id);
e107::getMessage()->addDebug("Action: ".$action);
e107::getMessage()->addDebug(print_a($data,true));
}