Skip to content

Commit

Permalink
update_v6.0.2_6.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kojikoji725 committed May 9, 2024
1 parent e8ea416 commit b9b05e7
Show file tree
Hide file tree
Showing 20 changed files with 195 additions and 37 deletions.
8 changes: 8 additions & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,14 @@ The decryption password will be sent separately.
- Default value : false
- Role : By setting it to true, the order of role group settings on the user edit page and organization edit page and the order of the role group list page will match the display order (of role groups). If false, it will be in id order.

#### Custom view sort order
- Setting key : EXMENT_SORT_CUSTOM_VIEW_OPTIONS
- Default value : 0
- Role : Set the order of views displayed on the custom view menu button. Please choose from the following.
0: 1st key: System view/user view, 2nd key: View type, 3rd key: id
1: 1st key: System view/user view, 2nd key: View type, 3rd key: order
2: 1st key: system view/user view, 2nd key: order

### Import / Export

#### Disable Import
Expand Down
3 changes: 2 additions & 1 deletion docs/data_details.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Data details
Click the target data in [Data List](/data_grid.md) to display the data details.
In the data list, only the contents specified in [Display column selection](/view?Id=Display-Column-Selection) in the view settings are displayed, but in the data details, [Data form](/data_form) are displayed.
In the data list, only the contents specified in [Display column selection](/view?Id=Display-Column-Selection) in the view settings are displayed.
In the data details, matching form items are displayed according to the priority set in the [form priority](/form?Id=form-priority-settings) settings.

The following four types of information are displayed on the data details screen.

Expand Down
10 changes: 5 additions & 5 deletions docs/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Enter the name of the form to be saved.

- ##### Default form
If you want to register this form as the default form, please set it to YES.
If [form display condition](#form-display-condition-settings) is set, that will be prioritized.
If [form priority](#form-priority-settings) is set, that will be prioritized.

- ##### Detailed screen display method
Select whether to match the item display method on the [data detail page](/data_details) with the row / column layout set on this screen, or to display in a simple vertical single column display.
Expand Down Expand Up @@ -250,15 +250,15 @@ When updating from less than v3.3.1 to v3.3.1 or higher, in order to maintain co
Click [here](/patch/relation_filter) for details on the specifications at the time of update.</span>


## Form display condition settings
## Form priority settings
By setting the conditions and priority, you can switch the form screen used for data creation and data detail page.

### Create New
Create from the [New] button to the right of the form display condition settings.
![Form display condition](img/form/form_display_conditions.png)
Create from the [New] button to the right of the form priority settings.
![Form priority](img/form/form_display_conditions.png)

### Setting Page
![Form display condition](img/form/form_priority.png)
![Form priority](img/form/form_priority.png)

##### Target Form
Select the form you want to display when the conditions are match.
Expand Down
Binary file modified docs/img/form/form_display_conditions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/view/view_new2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs/ja/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,13 @@ EXMENT_FILTER_SEARCH_FULL=true
- 既定値 : false
- 役割 : trueにすることで、ユーザー編集画面や組織編集画面の役割グループ設定の並び順、及び役割グループ一覧画面の並び順を(役割グループの)表示順に合わせます。falseの場合はid順になります。

#### カスタムビューのソート順
- 設定キー : EXMENT_SORT_CUSTOM_VIEW_OPTIONS
- 既定値 : 0
- 役割 : カスタムビューメニューボタンに表示されるビューの並び順を設定します。以下の中から選択してください。
0 : 第1キー:システムビュー/ユーザービュー、第2キー:ビューの種類、第3キー:id
1 : 第1キー:システムビュー/ユーザービュー、第2キー:ビューの種類、第3キー:order
2 : 第1キー:システムビュー/ユーザービュー、第2キー:order

### インポート・エクスポート

Expand Down
2 changes: 1 addition & 1 deletion docs/ja/data_details.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# データ詳細
[データ一覧](/ja/data_grid.md)で対象データをクリックすることにより、データ詳細が表示されます。
データ一覧では、ビュー設定の[表示列選択](/ja/view?id=表示列選択)で指定している内容が表示されます。
データ詳細では[フォーム表示条件設定](/ja/form#フォーム表示条件設定)で設定している優先順に従い、合致するフォームの項目が表示されます。
データ詳細では[フォーム優先順位設定](/ja/form#フォーム優先順位設定)で設定している優先順に従い、合致するフォームの項目が表示されます。

また、データ詳細の画面では下記4種類の情報が表示されます。

Expand Down
6 changes: 3 additions & 3 deletions docs/ja/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Exmentの[データフォーム画面](/ja/data_form.md)に表示する項目、

- ##### 既定のフォーム
このフォームを、既定のフォームとして登録する場合は、YESにしてください。
[フォーム表示条件設定](#フォーム表示条件設定)が設定されている場合はそちらが優先されます。
[フォーム優先順位設定](#フォーム優先順位設定)が設定されている場合はそちらが優先されます。

- ##### 詳細画面表示方法
[データ詳細画面](/ja/data_details)の項目表示方法を、この画面で設定した行・列レイアウトに合わせるか、シンプルな縦1列表示にするかを選択します。
Expand Down Expand Up @@ -254,11 +254,11 @@ v3.3.1未満からv3.3.1以上にアップデートする際には、互換性
アップデート時の仕様の詳細は、[こちら](/ja/patch/relation_filter)をご参照ください。</span>


## フォーム表示条件設定
## フォーム優先順位設定
条件と優先度を設定することにより、データ作成やデータ詳細画面の際に用いるフォーム画面を切り替えることができます。

### 新規作成
フォーム表示条件設定の右にある[新規]ボタンから作成を行います。
フォーム優先順位設定の右にある[新規]ボタンから作成を行います。
![フォーム表示条件](img/form/form_display_conditions.png)

### 設定画面
Expand Down
Binary file modified docs/ja/img/form/form_display_conditions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/ja/img/view/view_new2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions docs/ja/plugin_quickstart_validate.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@ class Plugin extends PluginValidatorBase

public function validateDestroy($custom_value)
{
// (v6.0.2より追加)falseを返した場合、データ削除せずに、'message'に設定したエラーメッセージを画面に表示します。
if ($custom_value->getValue('priority') > 3) {
return [
'status' => false,
'message' => '重要度が高いデータは削除できません。',
];
} else {
// trueを返した場合、データ削除します。
return [
'status' => true
];
}
}
}
~~~
Expand All @@ -85,6 +97,8 @@ class Plugin extends PluginValidatorBase

- プラグイン管理画面で設定した「対象テーブル」を保存する直前に、プラグインが呼び出され、Plugin.php内のvalidate関数を実行します。validate関数でtrueを返した場合、処理はそのまま続行します。falseを返した場合、処理を中断して、プロパティ$messagesに設定したエラーメッセージを画面に表示します。

- 「対象テーブル」を削除する直前に、プラグインが呼び出され、Plugin.php内のvalidateDestroy関数を実行します。validate関数でtrueを返した場合、データを削除します。falseを返した場合、処理を中断して、'message'に設定したエラーメッセージを画面に表示します。

- Pluginクラスは、クラスPluginValidatorBaseを継承しています。
PluginValidatorBaseは、呼び出し元のカスタムテーブル$custom_table、変更前のカスタムデータ値$original_value、画面の入力値$input_valueなどのプロパティを所有しており、validate関数内ではそれらのプロパティを参照することができます。
プロパティの詳細については、[プラグインリファレンス](/ja/plugin_reference.md)をご覧ください。
Expand Down
14 changes: 13 additions & 1 deletion docs/ja/release_note.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# リリースノート
※パッチ・脆弱性リストは[こちら](/ja/patch_weakness)

## v6.0.3 (2024/05/09)

1. 機能修正
- ビュー切替時のビューの一覧の表示順の対応

1. 不具合修正
- 画像カラム(複数選択OK)を持つデータに対し、API(put-value)で画像以外のカラムを更新しようとすると500エラーになる不具合の修正 (laravel-admin)
- API経由での画像削除における動作不良の修正
- 条件値が設定済のビュー設定等を開いて、条件項目を変更しても条件値がクリアされない不具合の修正
- テキストエディタ列のデータ連動がきかない不具合の修正


## v6.0.2 (2024/04/10)

1. 全般
Expand Down Expand Up @@ -840,7 +852,7 @@
## v3.5.0 (2020/07/28)
1. 機能追加
- データ更新設定を追加。「ボタンをクリック」「データを新規作成」など、特定のトリガーで、Exmentに保存しているデータを一括で更新します。詳細は[こちら](/ja/operation)
- フォームの優先度設定で、画面の種類を選択できるようにしました。「新規作成時のみ表示するフォーム」「データ詳細画面のみ表示するフォーム」といった設定を行うことができます。フォームの優先度設定は[こちら](/ja/form#フォーム表示条件設定)
- フォームの優先度設定で、画面の種類を選択できるようにしました。「新規作成時のみ表示するフォーム」「データ詳細画面のみ表示するフォーム」といった設定を行うことができます。フォームの優先度設定は[こちら](/ja/form#フォーム優先順位設定)
- プラグインの編集機能を追加しました。画面からプラグインファイルを編集・新規アップロード・削除できます。
- ユーザービュー・ユーザーダッシュボードの有効・無効を、システム設定から変更できるよう修正
- ファイル・画像列で、ドラッグ&ドロップに対応。※無効にする場合は[こちら](/ja/config#ファイルのドラッグ&ドロップの無効)
Expand Down
41 changes: 41 additions & 0 deletions docs/ja/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,47 @@ rm /usr/bin/composer
- [Mac版 解説サイト](https://weblabo.oscasierra.net/php-composer-macos-homebrew-install/)


### アップデートバッチの実行やcomposer requireコマンドの実行時、"require ext-gd "と"require ext-sodium "エラーが発生する
アップデートバッチの実行やcomposer requireコマンドの実行時に、以下の表示になることがあります。
```
Problem 1
- phpoffice/phpspreadsheet[1.23.0, ..., 1.29.0] require ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
```
```
Problem 1
- lcobucci/jwt[5.0.0, ..., 5.3.0] require ext-sodium * -> it is missing from your system. Install or enable PHP's sodium extension.
```
この場合、php extensionを有効にしてください。
#### Linuxの場合
~~~
# Ubuntu server
sudo apt-get install php8.2-gd
# Centos server
sudo yum install gd gd-devel php-gd
~~~

#### Mac/Windowsの場合

##### (1) php.iniファイルのパスを取得

~~~
# 以下のコマンドを実行します。php.iniファイルのパスは「Loaded Configuration File」の行に表示されます。
php --ini
~~~

##### (2) php.iniファイルを修正

~~~
# 下記をコメントアウトを解除する
extension=gd
# 下記をコメントアウトを解除する
extension=sodium
~~~



### 初回インストール後、管理画面にアクセス時、「SQLSTATE[HY000][202] Permission denied」エラーが発生する
ApacheからMySQLにアクセスを行う場合、SELinuxの設定が必要になる場合があります。
Expand Down
1 change: 1 addition & 0 deletions docs/ja/update/v6_0_2.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 更新手順 v6.0.2
Exment v6.0.2では、MariaDBの対応バージョンが変更となります。
v6.0.2未満では、MariaDB10.4を使用しておりましたが、MariaDB10.4のセキュリティサポート期限が2024/06にて終了したため、MariaDB10.11以上へと変更します。
アップデート時にエラーが発生した場合、[トラブルシューティング](/ja/troubleshooting)をご参照ください。

## MariaDBバージョンアップ方法 MariaDB 10.11
### XAMPP環境のアップデート作業
Expand Down
13 changes: 8 additions & 5 deletions docs/ja/view.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ Exmentの[データ一覧画面](/ja/data_grid.md)に表示する、列や絞り
※「既定」の項目を「YES」とできるのは、1つのカスタムテーブル内で1つのビューのみです。
「既定」を2つ以上のビューで「YES」とする場合、最後に「YES」に設定したビュー以外は「NO」に変更されます。

#### 表示順
.envファイルの「EXMENT_SORT_CUSTOM_VIEW_OPTIONS」の設定値が0ではない場合に表示します。
カスタムビューメニューボタンに表示されるビューの並び順を設定します。

#### ビューの情報ボックスを使用する
[YES]に設定することで、ビューの上部に情報ボックスを設けることができます。
タイトルや本文を入力し、業務内容や、ユーザーへのメッセージとして表示することができます。
Expand Down Expand Up @@ -131,13 +135,12 @@ Exmentの[データ一覧画面](/ja/data_grid.md)に表示する、列や絞り
ビューの表示条件を新規追加します。

##### 条件の結合
「すべての条件に一致」を選択する場合は、全ての条件に一致するデータを表示します。
「いずれかの条件に一致」を選択する場合は、いずれかの条件に一致するデータを表示します。
「すべての条件に一致」を選択した場合は、全ての条件に一致するデータを表示します。
「いずれかの条件に一致」を選択した場合は、いずれかの条件に一致するデータを表示します。

##### 条件の反転
「条件を反転する」をチェックオンする場合は、条件に一致しないデータを表示します。
「条件を反転する」をチェックオンしない場合は、条件に一致するデータを表示します。
※集計ビューのみは表示条件反転機能の対象外です。
「条件を反転する」をチェックオンした場合は、条件に一致しないデータを表示します。
※集計ビューは表示条件反転機能の対象外です。

#### 検索条件について
「対象列」で選択した内容の種類(「日付」「ユーザー」など)によって、選択肢の項目は変更されます。
Expand Down
16 changes: 16 additions & 0 deletions docs/plugin_quickstart_validate.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@ class Plugin extends PluginValidatorBase

public function validateDestroy($custom_value)
{
// (Added from v6.0.2) If false is returned, the error message set in 'message' will be displayed on the screen without deleting the data.
if ($custom_value->getValue('priority') > 3) {
return [
'status' => false,
'message' => '重要度が高いデータは削除できません。',
];
} else {
// If it returns true, data will be deleted.
return [
'status' => true
];
}
}
}
~~~
Expand All @@ -73,6 +85,10 @@ php is executed.
If you return true in the validate function, the process will continue.
If false is returned, the process is interrupted and the error message set in the property $ messages is displayed on the screen.

- Just before deleting the "target table", the plugin is called and executes the validateDestroy function in Plugin.php.
If the validateDestroy function returns true, the data will be deleted.
If false is returned, processing will be interrupted and the error message set in 'message' will be displayed on the screen.

- The Plugin class inherits from the class PluginValidatorBase.
PluginValidatorBase has properties such as the custom table $ custom_table, the custom data value before the change $ original_value, and the screen input value $ input_value, which can be referenced in the validate function.
See the [plugin reference](/plugin_reference.md) for details on properties.
Expand Down
13 changes: 12 additions & 1 deletion docs/release_note.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# Release notes
* Click [here](/patch_weakness) for the patch / vulnerability list.

## v6.0.3 (2024/05/09)
1. Function fixes
- Adjusting the display order of the view list when switching views.

1. Bug fixes
- Fix the bug where trying to update columns other than the image column (multiple selections OK) for data with an image column via the API (put-value) results in a 500 error.
- Fix the malfunction in image deletion via the API.
- Fix the bug where the condition value does not clear even if the condition item is changed when opening view settings etc. where the condition value is already set.
- Fix the bug where data linkage does not work in the text editor column.


## v6.0.2 (2024/04/10)
1. General
- Compatible with Maria DB 10.11 Details [here](/update/v6_0_2)
Expand Down Expand Up @@ -834,7 +845,7 @@
## v3.5.0 (2020/07/28)
1. Addition of functions
- Added data update settings. A specific trigger such as "click a button" or "create new data" updates the data saved in Exment in a batch. Click [here](/operation) for details.
- You can now select the screen type in the form priority settings. You can make settings such as "form that is displayed only when creating a new form" and "form that is displayed only on the data details screen". Form priority setting is [here](/form # form display condition setting)
- You can now select the screen type in the form priority settings. You can make settings such as "form that is displayed only when creating a new form" and "form that is displayed only on the data details screen". Form priority setting is [here](/form#form-priority-settings)
- Added the editing function of the plug-in. You can edit, upload new, and delete plug-in files from the screen.
- Fixed so that the user view / user dashboard can be enabled / disabled from the system settings.
- Drag and drop is supported for file / image columns. * To disable it, click [here](/config#disable-drag-and-drop-of-file).
Expand Down
Loading

0 comments on commit b9b05e7

Please sign in to comment.