mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Admin-UI/Form Handler: Fix for auto-link generation failing in create/edit mode.
This commit is contained in:
@@ -4502,7 +4502,10 @@ var_dump($select_options);*/
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @var e_admin_model $model */
|
/** @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
|
$dialog = vartrue($parms['target']) =='dialog' ? " e-modal" : ""; // iframe
|
||||||
$ext = vartrue($parms['target']) =='blank' ? " rel='external' " : ""; // new window
|
$ext = vartrue($parms['target']) =='blank' ? " rel='external' " : ""; // new window
|
||||||
@@ -6765,6 +6768,8 @@ var_dump($select_options);*/
|
|||||||
{
|
{
|
||||||
$model = $models[$fid];
|
$model = $models[$fid];
|
||||||
|
|
||||||
|
e107::setRegistry('core/adminUI/currentModel', $model);
|
||||||
|
|
||||||
if(!is_object($model))
|
if(!is_object($model))
|
||||||
{
|
{
|
||||||
e107::getDebug()->log("No model object found with key ".$fid);
|
e107::getDebug()->log("No model object found with key ".$fid);
|
||||||
|
Reference in New Issue
Block a user