Release of v4.1.1-beta2

Adds new JCB package engine. Fix issue with loading the Component Builder Wiki. Adds advanced version update notice to the Component Builder Dashboard. Completely refactors the class that builds the Component Dashboard. #1134. Adds Initialize, Reset, and Push functionality to the Repository entities. Completely refactors the SQL teaks and SQL dump classes. Changes J4 fields to allow NULL. Fix a bug in Dynamic Get JavaScript that causes table columns to not load.
This commit is contained in:
2025-06-27 10:36:15 +00:00
parent d11860ae1a
commit 64bc4327eb
883 changed files with 63212 additions and 27462 deletions

View File

@ -149,13 +149,13 @@ class ###View###Controller extends FormController
*/
public function batch($model = null)
{
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Joomla___5ba38513_5c4f_4b0d_935e_49e986a6bce8___Power::checkToken() or exit(Joomla___ba6326ef_cb79_4348_80f4_ab086082e3c5___Power::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('###View###', '', []);
// Preset the redirect
$this->setRedirect(Route::_('index.php?option=com_###component###&view=###views###' . $this->getRedirectToListAppend(), false));
$this->setRedirect(Joomla___d4c76099_4c32_408a_8701_d0a724484dfd___Power::_('index.php?option=com_###component###&view=###views###' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
@ -180,13 +180,13 @@ class ###View###Controller extends FormController
$cancel = parent::cancel($key);
if (!is_null($return) && Uri::isInternal(base64_decode($return)))
if (!is_null($return) && Joomla___eecc143e_b5cf_4c33_ba4d_97da1df61422___Power::isInternal(base64_decode($return)))
{
$redirect = base64_decode($return);
// Redirect to the return value.
$this->setRedirect(
Route::_(
Joomla___d4c76099_4c32_408a_8701_d0a724484dfd___Power::_(
$redirect, false
)
);
@ -197,7 +197,7 @@ class ###View###Controller extends FormController
// Redirect to the item screen.
$this->setRedirect(
Route::_(
Joomla___d4c76099_4c32_408a_8701_d0a724484dfd___Power::_(
'index.php?option=' . $this->option . $redirect, false
)
);
@ -208,10 +208,19 @@ class ###View###Controller extends FormController
// Redirect to the list screen.
$this->setRedirect(
Route::_(
Joomla___d4c76099_4c32_408a_8701_d0a724484dfd___Power::_(
'index.php?option=' . $this->option . $redirect, false
)
);
}
// When editing in modal then redirect to modalreturn layout
elseif ($cancel && $this->input->get('layout') === 'modal')
{
$id = $this->input->get('id');
$return = 'index.php?option=' . $this->option . '&view=' . $this->view_item . $this->getRedirectToItemAppend($id)
. '&layout=modalreturn&from-task=cancel';
$this->setRedirect(Route::_($return, false));
}###JCONTROLLERFORM_AFTERCANCEL###
return $cancel;
}
@ -234,7 +243,7 @@ class ###View###Controller extends FormController
// Check if there is a return value
$return = $this->input->get('return', null, 'base64');
$canReturn = (!is_null($return) && Uri::isInternal(base64_decode($return)));
$canReturn = (!is_null($return) && Joomla___eecc143e_b5cf_4c33_ba4d_97da1df61422___Power::isInternal(base64_decode($return)));
if ($this->ref || $this->refid || $canReturn)
{
@ -252,7 +261,7 @@ class ###View###Controller extends FormController
// Redirect to the return value.
$this->setRedirect(
Route::_(
Joomla___d4c76099_4c32_408a_8701_d0a724484dfd___Power::_(
$redirect, false
)
);
@ -263,7 +272,7 @@ class ###View###Controller extends FormController
// Redirect to the item screen.
$this->setRedirect(
Route::_(
Joomla___d4c76099_4c32_408a_8701_d0a724484dfd___Power::_(
'index.php?option=' . $this->option . $redirect, false
)
);
@ -274,7 +283,7 @@ class ###View###Controller extends FormController
// Redirect to the list screen.
$this->setRedirect(
Route::_(
Joomla___d4c76099_4c32_408a_8701_d0a724484dfd___Power::_(
'index.php?option=' . $this->option . $redirect, false
)
);
@ -294,6 +303,15 @@ class ###View###Controller extends FormController
* @since 11.1
*/
protected function postSaveHook(BaseDatabaseModel $model, $validData = [])
{###POSTSAVEHOOK###
{
if ($this->input->get('layout') === 'modal' && $this->task === 'save')
{
// When editing in modal then redirect to modalreturn layout
$id = $model->getState('###view###.id', '');
$return = 'index.php?option=' . $this->option . '&view=' . $this->view_item . $this->getRedirectToItemAppend($id)
. '&layout=modalreturn&from-task=save';
$this->setRedirect(Route::_($return, false));
}###POSTSAVEHOOK###
}
}