This commit is contained in:
Oh
2025-02-04 16:52:43 +02:00
parent ab99fc1336
commit 752a42b2cb
89 changed files with 199 additions and 144 deletions

View File

@@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 1.0.1
@build 21st August, 2024
@build 4th February, 2025
@created 24th May, 2024
@package Subform Power
@subpackage currencies_fullwidth.php
@@ -24,6 +24,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
use JCB\Joomla\Utilities\StringHelper;
use JCB\Joomla\Utilities\ArrayHelper;
use Joomla\CMS\User\UserFactoryInterface;
// No direct access to this file
defined('_JEXEC') or die;
@@ -53,9 +54,9 @@ else
$ref = ($id) ? "&ref=country&refid=" . $id : "";
}
// set the create new URL
$new = "index.php?option=com_subformpower&view=currencies&task=currency.edit" . $ref;
$new = "index.php?option=com_subformpower&view=currencies&task=currency.add" . $ref;
// set the create new and close URL
$close_new = "index.php?option=com_subformpower&view=currencies&task=currency.edit";
$close_new = "index.php?option=com_subformpower&view=currencies&task=currency.add";
// load the action object
$can = SubformpowerHelper::getActions('currency');
@@ -93,8 +94,8 @@ $can = SubformpowerHelper::getActions('currency');
<?php
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0;
$userChkOut = Factory::getContainer()->
get(\Joomla\CMS\User\UserFactoryInterface::class)->
loadUserById($item->checked_out);
get(UserFactoryInterface::class)->
loadUserById($item->checked_out ?? 0);
$canDo = SubformpowerHelper::getActions('currency',$item,'currencies');
?>
<tr>

View File

@@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 1.0.1
@build 21st August, 2024
@build 4th February, 2025
@created 24th May, 2024
@package Subform Power
@subpackage details_above.php

View File

@@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 1.0.1
@build 21st August, 2024
@build 4th February, 2025
@created 24th May, 2024
@package Subform Power
@subpackage details_left.php

View File

@@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 1.0.1
@build 21st August, 2024
@build 4th February, 2025
@created 24th May, 2024
@package Subform Power
@subpackage details_right.php

View File

@@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 1.0.1
@build 21st August, 2024
@build 4th February, 2025
@created 24th May, 2024
@package Subform Power
@subpackage more_stuff_fullwidth.php

View File

@@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 1.0.1
@build 21st August, 2024
@build 4th February, 2025
@created 24th May, 2024
@package Subform Power
@subpackage publishing.php

View File

@@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 1.0.1
@build 21st August, 2024
@build 4th February, 2025
@created 24th May, 2024
@package Subform Power
@subpackage publlshing.php