Skip to content

Commit e39028b

Browse files
committed
fix(targetchange): rich text does not exists for changes
Signed-off-by: btry <tbugier@teclib.com>
1 parent 8a98b0d commit e39028b

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

inc/targetchange.class.php

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public function showForm($options = []) {
218218

219219
echo '<tr class="line1">';
220220
echo '<td width="15%"><strong>' . __('Name') . ' <span style="color:red;">*</span></strong></td>';
221-
echo '<td width="85%"><input type="text" name="name" style="width:704px;" value="' . $target['name'] . '"></textarea</td>';
221+
echo '<td width="85%"><input type="text" name="name" style="width:704px;" value="' . $target['name'] . '"/></td>';
222222
echo '</tr>';
223223

224224
echo '</table>';
@@ -230,66 +230,48 @@ public function showForm($options = []) {
230230

231231
echo '<tr class="line1">';
232232
echo '<td><strong>' . __('Change title', 'formcreator') . ' <span style="color:red;">*</span></strong></td>';
233-
echo '<td colspan="3"><input type="text" name="title" style="width:704px;" value="' . $this->fields['name'] . '"></textarea</td>';
233+
echo '<td colspan="3"><input type="text" name="title" style="width:704px;" value="' . $this->fields['name'] . '"></textarea></td>';
234234
echo '</tr>';
235235

236236
echo '<tr class="line0">';
237237
echo '<td><strong>' . __('Description') . ' <span style="color:red;">*</span></strong></td>';
238238
echo '<td colspan="3">';
239239
echo '<textarea name="comment" style="width:700px;" rows="15">' . $this->fields['comment'] . '</textarea>';
240-
if ($CFG_GLPI["use_rich_text"]) {
241-
Html::initEditorSystem('comment');
242-
}
243240
echo '</td>';
244241
echo '</tr>';
245242

246243
echo '<tr class="line1">';
247244
echo '<td><strong>' . __('Impacts') . ' </strong></td>';
248245
echo '<td colspan="3">';
249246
echo '<textarea name="impactcontent" style="width:700px;" rows="15">' . $this->fields['impactcontent'] . '</textarea>';
250-
if ($CFG_GLPI["use_rich_text"]) {
251-
Html::initEditorSystem('impactcontent');
252-
}
253247
echo '</td>';
254248
echo '</tr>';
255249

256250
echo '<tr class="line0">';
257251
echo '<td><strong>' . __('Control list') . ' </strong></td>';
258252
echo '<td colspan="3">';
259253
echo '<textarea name="controlistcontent" style="width:700px;" rows="15">' . $this->fields['controlistcontent'] . '</textarea>';
260-
if ($CFG_GLPI["use_rich_text"]) {
261-
Html::initEditorSystem('controlistcontent');
262-
}
263254
echo '</td>';
264255
echo '</tr>';
265256

266257
echo '<tr class="line1">';
267258
echo '<td><strong>' . __('Deployment plan') . ' </strong></td>';
268259
echo '<td colspan="3">';
269260
echo '<textarea name="rolloutplancontent" style="width:700px;" rows="15">' . $this->fields['rolloutplancontent'] . '</textarea>';
270-
if ($CFG_GLPI["use_rich_text"]) {
271-
Html::initEditorSystem('rolloutplancontent');
272-
}
273261
echo '</td>';
274262
echo '</tr>';
275263

276264
echo '<tr class="line0">';
277265
echo '<td><strong>' . __('Backup plan') . ' </strong></td>';
278266
echo '<td colspan="3">';
279267
echo '<textarea name="backoutplancontent" style="width:700px;" rows="15">' . $this->fields['backoutplancontent'] . '</textarea>';
280-
if ($CFG_GLPI["use_rich_text"]) {
281-
Html::initEditorSystem('backoutplancontent');
282-
}
283268
echo '</td>';
284269
echo '</tr>';
285270

286271
echo '<tr class="line1">';
287272
echo '<td><strong>' . __('Checklist') . ' </strong></td>';
288273
echo '<td colspan="3">';
289274
echo '<textarea name="checklistcontent" style="width:700px;" rows="15">' . $this->fields['checklistcontent'] . '</textarea>';
290-
if ($CFG_GLPI["use_rich_text"]) {
291-
Html::initEditorSystem('checklistcontent');
292-
}
293275
echo '</td>';
294276
echo '</tr>';
295277

0 commit comments

Comments
 (0)