bug fixes

This commit is contained in:
Dennis Eichhorn 2024-05-12 00:03:34 +00:00
parent f24d89a5d6
commit e3dd7ba360
7 changed files with 31 additions and 24 deletions

View File

@ -9,5 +9,5 @@ jobs:
- uses: actions/first-interaction@v1 - uses: actions/first-interaction@v1
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: 'Thank you for createing this issue. We will check it as soon as possible.' issue-message: 'Thank you for creating this issue. We will check it as soon as possible.'
pr-message: 'Thank you for your pull request. We will check it as soon as possible.' pr-message: 'Thank you for your pull request. We will check it as soon as possible.'

View File

@ -1,16 +0,0 @@
[
{
"type": "type",
"name": "contract",
"l11n": [
{
"title": "Contract",
"lang": "en"
},
{
"title": "Vertrag",
"lang": "de"
}
]
}
]

View File

@ -0,0 +1,23 @@
[
{
"name": "contract",
"l11n": {
"en": "Contract",
"de": "Vertrag"
}
},
{
"name": "leasing",
"l11n": {
"en": "Leasing",
"de": "Leasing"
}
},
{
"name": "insurance",
"l11n": {
"en": "Insurance",
"de": "Versicherung"
}
}
]

6
Admin/Install/Media.php → Admin/Install/Tag.php Executable file → Normal file
View File

@ -17,14 +17,14 @@ namespace Modules\ContractManagement\Admin\Install;
use phpOMS\Application\ApplicationAbstract; use phpOMS\Application\ApplicationAbstract;
/** /**
* Media class. * Tag class.
* *
* @package Modules\ContractManagement\Admin\Install * @package Modules\ContractManagement\Admin\Install
* @license OMS License 2.0 * @license OMS License 2.0
* @link https://jingga.app * @link https://jingga.app
* @since 1.0.0 * @since 1.0.0
*/ */
class Media class Tag
{ {
/** /**
* Install media providing * Install media providing
@ -38,6 +38,6 @@ class Media
*/ */
public static function install(ApplicationAbstract $app, string $path) : void public static function install(ApplicationAbstract $app, string $path) : void
{ {
\Modules\Media\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/Media.install.json']); \Modules\Tag\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/Tag.install.json']);
} }
} }

View File

@ -175,7 +175,7 @@ final class ApiController extends Controller
virtualPath: $path, virtualPath: $path,
pathSettings: PathSettings::FILE_PATH, pathSettings: PathSettings::FILE_PATH,
readContent: true, readContent: true,
type: $request->getDataInt('type'), tag: $request->getDataInt('tag'),
rel: $contract->id, rel: $contract->id,
mapper: ContractMapper::class, mapper: ContractMapper::class,
field: 'files' field: 'files'

View File

@ -42,7 +42,7 @@ final class ContractAttributeTypeMapper extends DataMapperFactory
'contractmgmt_attr_type_datatype' => ['name' => 'contractmgmt_attr_type_datatype', 'type' => 'int', 'internal' => 'datatype'], 'contractmgmt_attr_type_datatype' => ['name' => 'contractmgmt_attr_type_datatype', 'type' => 'int', 'internal' => 'datatype'],
'contractmgmt_attr_type_fields' => ['name' => 'contractmgmt_attr_type_fields', 'type' => 'int', 'internal' => 'fields'], 'contractmgmt_attr_type_fields' => ['name' => 'contractmgmt_attr_type_fields', 'type' => 'int', 'internal' => 'fields'],
'contractmgmt_attr_type_custom' => ['name' => 'contractmgmt_attr_type_custom', 'type' => 'bool', 'internal' => 'custom'], 'contractmgmt_attr_type_custom' => ['name' => 'contractmgmt_attr_type_custom', 'type' => 'bool', 'internal' => 'custom'],
'contractmgmt_attr_type_repeatable' => ['name' => 'contractmgmt_attr_type_repeatable', 'type' => 'bool', 'internal' => 'repeatable'], 'contractmgmt_attr_type_repeatable' => ['name' => 'contractmgmt_attr_type_repeatable', 'type' => 'bool', 'internal' => 'isRepeatable'],
'contractmgmt_attr_type_internal' => ['name' => 'contractmgmt_attr_type_internal', 'type' => 'bool', 'internal' => 'isInternal'], 'contractmgmt_attr_type_internal' => ['name' => 'contractmgmt_attr_type_internal', 'type' => 'bool', 'internal' => 'isInternal'],
'contractmgmt_attr_type_pattern' => ['name' => 'contractmgmt_attr_type_pattern', 'type' => 'string', 'internal' => 'validationPattern'], 'contractmgmt_attr_type_pattern' => ['name' => 'contractmgmt_attr_type_pattern', 'type' => 'string', 'internal' => 'validationPattern'],
'contractmgmt_attr_type_required' => ['name' => 'contractmgmt_attr_type_required', 'type' => 'bool', 'internal' => 'isRequired'], 'contractmgmt_attr_type_required' => ['name' => 'contractmgmt_attr_type_required', 'type' => 'bool', 'internal' => 'isRequired'],

View File

@ -26,8 +26,8 @@
"providing": { "providing": {
"Navigation": "*", "Navigation": "*",
"Admin": "*", "Admin": "*",
"Media": "*", "Search": "*",
"Search": "*" "Tag": "*"
}, },
"load": [ "load": [
{ {