1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 05:02:02 +02:00

Admin-UI/Form Handler: Fix for auto-link generation failing in create/edit mode.

This commit is contained in:
Cameron 2020-03-13 18:03:51 -07:00
parent 5471a84746
commit 3cfdab25e4

View File

@ -4502,7 +4502,10 @@ var_dump($select_options);*/
}
/** @var e_admin_model $model */
$model = e107::getRegistry('core/adminUI/currentListModel');
if(!$model = e107::getRegistry('core/adminUI/currentListModel')) // Try list model
{
$model = e107::getRegistry('core/adminUI/currentModel'); // try create/edit model.
}
$dialog = vartrue($parms['target']) =='dialog' ? " e-modal" : ""; // iframe
$ext = vartrue($parms['target']) =='blank' ? " rel='external' " : ""; // new window
@ -6765,6 +6768,8 @@ var_dump($select_options);*/
{
$model = $models[$fid];
e107::setRegistry('core/adminUI/currentModel', $model);
if(!is_object($model))
{
e107::getDebug()->log("No model object found with key ".$fid);