Skip to content

Commit 13a1a6e

Browse files
committed
Added echoes
1 parent fff6bda commit 13a1a6e

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

ajax/container.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,19 @@
4848

4949
$display_condition = new PluginFieldsContainerDisplayCondition();
5050
if ($display_condition->computeDisplayContainer($item, $containers_id)) {
51+
$field_options = [
52+
'label_class' => 'col-lg-3',
53+
'input_class' => 'col-lg-9',
54+
];
55+
echo "<div class='offset-md-1 col-md-8 col-xxl-6'>";
5156
PluginFieldsField::showDomContainer(
5257
$containers_id,
5358
$item,
5459
$type,
5560
$subtype,
61+
$field_options
5662
);
63+
echo "</div>";
5764
} else {
5865
echo '';
5966
}

inc/field.class.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -887,12 +887,10 @@ public static function showForTab($params)
887887
{
888888
$item = $params['item'];
889889

890-
if($item->fields['type'] == "")
891-
{
890+
if($item->fields['type'] == "") {
892891
$item->fields['type'] = $params['options']['type'];
893892
}
894-
if($item->fields['itilcategories_id'] == "")
895-
{
893+
if($item->fields['itilcategories_id'] == "") {
896894
$item->fields['itilcategories_id'] = $params['options']['itilcategories_id'];
897895
}
898896

0 commit comments

Comments
 (0)