mirror of
https://github.com/Karaka-Management/oms-ContractManagement.git
synced 2026-02-15 01:48:42 +00:00
bug fixes
This commit is contained in:
parent
f24d89a5d6
commit
e3dd7ba360
2
.github/workflows/greetings.yml
vendored
2
.github/workflows/greetings.yml
vendored
|
|
@ -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.'
|
||||||
|
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
[
|
|
||||||
{
|
|
||||||
"type": "type",
|
|
||||||
"name": "contract",
|
|
||||||
"l11n": [
|
|
||||||
{
|
|
||||||
"title": "Contract",
|
|
||||||
"lang": "en"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Vertrag",
|
|
||||||
"lang": "de"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
23
Admin/Install/Tag.install.json
Normal file
23
Admin/Install/Tag.install.json
Normal 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
6
Admin/Install/Media.php → Admin/Install/Tag.php
Executable file → Normal 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']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -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'
|
||||||
|
|
|
||||||
|
|
@ -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'],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user