Release of v4.1.2-alpha3
Migrates view HTML classes to use getModel() directly instead of the deprecated magic get() calls to model methods. Refactores event handling (contentPrepare, titlePrepare, contentBeforeDisplay, contentAfterDisplay) to use Joomla 5’s native event dispatcher via the model’s new getDispatcher() method. Updates table classes to properly support NULL values, both in the store() method and in table variable definitions. #1245. Extractes the setAutoCheckIn() and setCheckInCall() logic into a dedicated CheckInNow class for cleaner design. Replace all direct $app->input property calls with the recommended $app->getInput() method across the entire codebase.
This commit is contained in:
@@ -42,9 +42,9 @@ class FilebehaviourField extends ListField
|
||||
*/
|
||||
protected function getOptions()
|
||||
{
|
||||
// get the input from url
|
||||
$jinput = Factory::getApplication()->input;
|
||||
// get the library id
|
||||
// get the input from url
|
||||
$jinput = Factory::getApplication()->getInput();
|
||||
// get the library id
|
||||
$libID = $jinput->getInt('id', 0);
|
||||
$options[] = Html::_('select.option', '1', Text::_('COM_COMPONENTBUILDER_ALWAYS_ADD'));
|
||||
// add build in option for some libraries
|
||||
@@ -56,6 +56,6 @@ class FilebehaviourField extends ListField
|
||||
$options[] = Html::_('select.option', '2', Text::_('COM_COMPONENTBUILDER_CONDITIONS'));
|
||||
$options[] = Html::_('select.option', '3', Text::_('COM_COMPONENTBUILDER_CUSTOM_SCRIPT'));
|
||||
$options[] = Html::_('select.option', '0', Text::_('COM_COMPONENTBUILDER_DO_NOT_ADD'));
|
||||
return $options;
|
||||
return $options;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user