Skip to content

Commit e87664a

Browse files
committed
Added echoes
1 parent b221133 commit e87664a

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
@@ -56,12 +56,19 @@
5656

5757
$display_condition = new PluginFieldsContainerDisplayCondition();
5858
if ($display_condition->computeDisplayContainer($item, $containers_id)) {
59+
$field_options = [
60+
'label_class' => 'col-lg-3',
61+
'input_class' => 'col-lg-9',
62+
];
63+
echo "<div class='offset-md-1 col-md-8 col-xxl-6'>";
5964
PluginFieldsField::showDomContainer(
6065
$containers_id,
6166
$item,
6267
$type,
6368
$subtype,
69+
$field_options
6470
);
71+
echo "</div>";
6572
} else {
6673
echo '';
6774
}

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)