Skip to content

Commit

Permalink
fix(targetticket,targetchange): long text truncated by GLPI
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Aug 3, 2021
1 parent af83987 commit 9143172
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions inc/targetchange.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ public function rawSearchOptions() {
'table' => $this::getTable(),
'field' => 'content',
'name' => __('Content', 'formcreator'),
'datatype' => 'string',
'datatype' => 'text',
'searchtype' => 'contains',
'massiveaction' => false
];
Expand All @@ -319,7 +319,7 @@ public function rawSearchOptions() {
'table' => $this::getTable(),
'field' => 'impactcontent',
'name' => __('Impact', 'formcreator'),
'datatype' => 'string',
'datatype' => 'text',
'searchtype' => 'contains',
'massiveaction' => false
];
Expand All @@ -329,7 +329,7 @@ public function rawSearchOptions() {
'table' => $this::getTable(),
'field' => 'controlistcontent',
'name' => __('Control list', 'formcreator'),
'datatype' => 'string',
'datatype' => 'text',
'searchtype' => 'contains',
'massiveaction' => false
];
Expand All @@ -339,7 +339,7 @@ public function rawSearchOptions() {
'table' => $this::getTable(),
'field' => 'rolloutplancontent',
'name' => __('Deployment plan', 'formcreator'),
'datatype' => 'string',
'datatype' => 'text',
'searchtype' => 'contains',
'massiveaction' => false
];
Expand All @@ -349,7 +349,7 @@ public function rawSearchOptions() {
'table' => $this::getTable(),
'field' => 'backoutplancontent',
'name' => __('Backup plan', 'formcreator'),
'datatype' => 'string',
'datatype' => 'text',
'searchtype' => 'contains',
'massiveaction' => false
];
Expand All @@ -359,7 +359,7 @@ public function rawSearchOptions() {
'table' => $this::getTable(),
'field' => 'checklistcontent',
'name' => __('Check list', 'formcreator'),
'datatype' => 'string',
'datatype' => 'text',
'searchtype' => 'contains',
'massiveaction' => false
];
Expand Down
2 changes: 1 addition & 1 deletion inc/targetticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function rawSearchOptions() {
'table' => $this::getTable(),
'field' => 'content',
'name' => __('Content', 'formcreator'),
'datatype' => 'string',
'datatype' => 'text',
'searchtype' => 'contains',
'massiveaction' => false
];
Expand Down

1 comment on commit 9143172

@fralla2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @btry for this fix. I experienced exactly that problem this morning saving a form target' description :)

Please sign in to comment.