mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-01-25 03:38:39 +00:00
Fix install
This commit is contained in:
parent
1675e6f827
commit
240d7ff853
|
|
@ -29,7 +29,7 @@ use phpOMS\DataStorage\Database\Pool;
|
|||
*/
|
||||
class Navigation
|
||||
{
|
||||
public static function install(Pool $dbPool)
|
||||
public static function install(string $path, Pool $dbPool)
|
||||
{
|
||||
$navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);
|
||||
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@ class Installer extends InstallerAbstract
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function install(Pool $dbPool, InfoManager $info)
|
||||
public static function install(string $path, Pool $dbPool, InfoManager $info)
|
||||
{
|
||||
parent::install($dbPool, $info);
|
||||
parent::install($path, $dbPool, $info);
|
||||
|
||||
switch ($dbPool->get('core')->getType()) {
|
||||
case DatabaseType::MYSQL:
|
||||
|
|
|
|||
|
|
@ -302,15 +302,15 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
{
|
||||
$val = [];
|
||||
if (
|
||||
$val['name'] = empty($request->getData('name'))
|
||||
|| $val['parent'] = (
|
||||
($val['name'] = empty($request->getData('name')))
|
||||
|| ($val['parent'] = (
|
||||
$request->getData('parent') !== null
|
||||
&& !is_numeric($request->getData('parent'))
|
||||
)
|
||||
|| $val['status'] = (
|
||||
))
|
||||
|| ($val['status'] = (
|
||||
$request->getData('status') === null
|
||||
|| !GroupStatus::isValidValue((int) $request->getData('status'))
|
||||
)
|
||||
))
|
||||
) {
|
||||
$response->set('group_create_validation', new FormValidation($val));
|
||||
|
||||
|
|
|
|||
|
|
@ -27,11 +27,11 @@ $_thousands_sep = $this->getData('thousands_sep') ?? '';
|
|||
$_password = $this->getData('password') ?? '';
|
||||
$_country = $this->getData('country') ?? '';
|
||||
|
||||
$countries = \phpOMS\Localization\ISO3166EnumArray::getConstants();
|
||||
$countries = \phpOMS\Localization\ISO3166NameEnum::getConstants();
|
||||
$timezones = \phpOMS\Localization\TimeZoneEnumArray::getConstants();
|
||||
$timeformats = \phpOMS\Localization\ISO8601EnumArray::getConstants();
|
||||
$languages = \phpOMS\Localization\ISO639EnumArray::getConstants();
|
||||
$currencies = \phpOMS\Localization\ISO4217EnumArray::getConstants();
|
||||
$languages = \phpOMS\Localization\ISO639Enum::getConstants();
|
||||
$currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
|
||||
|
||||
?>
|
||||
<section class="box w-50 floatLeft">
|
||||
|
|
|
|||
|
|
@ -27,11 +27,11 @@ $_thousands_sep = $this->getData('thousands_sep') ?? '';
|
|||
$_password = $this->getData('password') ?? '';
|
||||
$_country = $this->getData('country') ?? '';
|
||||
|
||||
$countries = \phpOMS\Localization\ISO3166EnumArray::getConstants();
|
||||
$countries = \phpOMS\Localization\ISO3166NameEnum::getConstants();
|
||||
$timezones = \phpOMS\Localization\TimeZoneEnumArray::getConstants();
|
||||
$timeformats = \phpOMS\Localization\ISO8601EnumArray::getConstants();
|
||||
$languages = \phpOMS\Localization\ISO639EnumArray::getConstants();
|
||||
$currencies = \phpOMS\Localization\ISO4217EnumArray::getConstants();
|
||||
$languages = \phpOMS\Localization\ISO639Enum::getConstants();
|
||||
$currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
|
||||
|
||||
?>
|
||||
<section class="box w-50 floatLeft">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user