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:
parent
5471a84746
commit
3cfdab25e4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user