ADD B4 Actions: Save and View

This commit is contained in:
2023-10-07 23:33:29 +02:00
parent 9db4ad808b
commit 436734cd4c
7 changed files with 144 additions and 9 deletions

View File

@ -10,6 +10,7 @@
namespace KW4NZ\Component\Depot\Administrator\Model;
use Joomla\CMS\Factory;
use Joomla\CMS\MVC\Model\AdminModel;
\defined('_JEXEC') or die;
@ -26,4 +27,16 @@ class PartModel extends AdminModel
return $form;
}
protected function loadFormData()
{
$app = Factory::getApplication();
$data = $app->getUserState('com_depot.edit.part.data', []);
if (empty($data)) {
$data = $this->getItem();
}
return $data;
}
}