diff --git a/src/Ticket.php b/src/Ticket.php index b03628d6824..43113aa7965 100644 --- a/src/Ticket.php +++ b/src/Ticket.php @@ -2005,11 +2005,10 @@ public function updateDateMod($ID, $no_stat_computation = false, $users_id_lastu /** * Overloaded from commonDBTM * - * @param $type string of object to add - * * @param string $type itemtype of object to add + * * @return boolean - **@since 0.83 + * @since 0.83 * */ public function canAddItem(string $type): bool @@ -2244,33 +2243,33 @@ public static function showMassiveActionsSubForm(MassiveAction $ma) 'rand' => $rand ]; echo ""; - echo "
"; + echo ""; Ticket::dropdown($mergeparam); - echo "
"; + echo "
"; Html::showCheckbox([ 'name' => 'with_followups', 'id' => 'with_followups', 'checked' => true ]); - echo ""; + echo ""; Html::showCheckbox([ 'name' => 'with_documents', 'id' => 'with_documents', 'checked' => true ]); - echo "
"; + echo "
"; Html::showCheckbox([ 'name' => 'with_tasks', 'id' => 'with_tasks', 'checked' => true ]); - echo ""; + echo ""; Html::showCheckbox([ 'name' => 'with_actors', 'id' => 'with_actors', 'checked' => true ]); - echo "
"; + echo "
"; Dropdown::showFromArray('link_type', [ 0 => __('None'), CommonITILObject_CommonITILObject::LINK_TO => __('Linked to'), @@ -2305,7 +2304,7 @@ public static function showMassiveActionsSubForm(MassiveAction $ma) echo '
'; echo '
'; - $label = SolutionTemplate::getTypeName(1); + $label = htmlspecialchars(SolutionTemplate::getTypeName(1)); echo ""; SolutionTemplate::dropdown([ 'name' => "solution_template", @@ -2337,7 +2336,7 @@ function solutiontemplate_update{$rand}(value) { echo '
'; // .form-row echo '
'; - $label = SolutionType::getTypeName(1); + $label = htmlspecialchars(SolutionType::getTypeName(1)); echo ""; SolutionType::dropdown([ 'name' => 'solutiontypes_id', @@ -2346,7 +2345,7 @@ function solutiontemplate_update{$rand}(value) { echo '
'; // .form-row echo '
'; - $label = __('Description'); + $label = __s('Description'); echo "