Laurent Destailleur 1 year ago
parent
commit
118b70a437

+ 3 - 3
.github/workflows/phpcsfixer.yml

@@ -39,6 +39,6 @@ jobs:
           phpcs_ref_name: ${{github.ref_name}}
           phpcs_github_event_name: ${{github.event_name}}
           phpcs_files: ${{ needs.filesChanged.outputs.all_changed_files }}
-      #- uses: stefanzweifel/git-auto-commit-action@v4 # auto commit the fixes action for GitHub
-      #  with:
-      #    commit_message: Fix PHPCS errors
+      - uses: stefanzweifel/git-auto-commit-action@v4 # auto commit the fixes action for GitHub
+        with:
+          commit_message: Fix PHPCS errors by GitHub PHPCSfixer action

+ 2 - 2
htdocs/bom/tpl/objectline_edit.tpl.php

@@ -165,8 +165,8 @@ if ($filtertype != 1) {
 $coldisplay += $colspan;
 print '<td class="nobottom linecoledit center valignmiddle" colspan="'.$colspan.'">';
 $coldisplay += $colspan;
-print '<input type="submit" class="button buttongen margintoponly marginbottomonly button-save" id="savelinebutton" name="save" value="'.$langs->trans("Save").'">';
-print '<input type="submit" class="button buttongen margintoponly marginbottomonly button-cancel" id="cancellinebutton" name="cancel" value="'.$langs->trans("Cancel").'">';
+print '<input type="submit" class="reposition button buttongen margintoponly marginbottomonly button-save" id="savelinebutton" name="save" value="'.$langs->trans("Save").'">';
+print '<input type="submit" class="reposition button buttongen margintoponly marginbottomonly button-cancel" id="cancellinebutton" name="cancel" value="'.$langs->trans("Cancel").'">';
 print '</td>';
 print '</tr>';
 

+ 2 - 2
htdocs/core/class/html.form.class.php

@@ -4218,7 +4218,7 @@ class Form
 
 	/**
 	 *    print list of payment modes.
-	 *    Constant MAIN_DEFAULT_PAYMENT_TERM_ID can used to set default value but scope is all application, probably not what you want.
+	 *    Constant MAIN_DEFAULT_PAYMENT_TERM_ID can be used to set default value but scope is all application, probably not what you want.
 	 *    See instead to force the default value by the caller.
 	 *
 	 * @param int $selected Id of payment term to preselect by default
@@ -4242,7 +4242,7 @@ class Form
 
 	/**
 	 *    Return list of payment modes.
-	 *    Constant MAIN_DEFAULT_PAYMENT_TERM_ID can used to set default value but scope is all application, probably not what you want.
+	 *    Constant MAIN_DEFAULT_PAYMENT_TERM_ID can be used to set default value but scope is all application, probably not what you want.
 	 *    See instead to force the default value by the caller.
 	 *
 	 * @param int $selected Id of payment term to preselect by default