Qual: Upgrade tool versions in pre-commit setup (#38233)
* Qual: Upgrade tool versions in pre-commit * Qual: avoid codespell notice * Qual: Fix spelling * Qual: Fix spelling * Qual: Add spelling exceptions * Qual: whitespace/line-ending
This commit is contained in:
parent
4932d5781f
commit
4b191b12b4
7 changed files with 41 additions and 21 deletions
|
|
@ -41,6 +41,9 @@ repos:
|
|||
exclude_types: [markdown]
|
||||
# Fix the end of file
|
||||
- id: end-of-file-fixer
|
||||
exclude: |
|
||||
(?x)^(htdocs/public/includes/tinymce/.*
|
||||
)$
|
||||
# Check that there are no completely merged file conflicts
|
||||
- id: check-merge-conflict
|
||||
stages: [pre-rebase, pre-commit, pre-merge-commit]
|
||||
|
|
@ -66,7 +69,7 @@ repos:
|
|||
|
||||
# Check github actions
|
||||
- repo: https://github.com/rhysd/actionlint
|
||||
rev: v1.7.11
|
||||
rev: v1.7.12
|
||||
hooks:
|
||||
- id: actionlint
|
||||
stages: [manual] # To run: pre-commit run -a --hook-stage=manual actionlint
|
||||
|
|
@ -218,7 +221,7 @@ repos:
|
|||
|
||||
# Execute codespell to fix typo errors (setup of codespell into dev/tools/codespell/)
|
||||
- repo: https://github.com/codespell-project/codespell
|
||||
rev: v2.4.1
|
||||
rev: v2.4.2
|
||||
hooks:
|
||||
- id: codespell
|
||||
# Due to a current limitation of configuration files,
|
||||
|
|
@ -269,7 +272,7 @@ repos:
|
|||
|
||||
# Check sql file syntax
|
||||
- repo: https://github.com/sqlfluff/sqlfluff
|
||||
rev: 4.0.4
|
||||
rev: 4.2.0
|
||||
hooks:
|
||||
- id: sqlfluff-lint
|
||||
stages: [pre-commit, manual] # manual needed for ci
|
||||
|
|
|
|||
10
ChangeLog
10
ChangeLog
|
|
@ -1851,7 +1851,7 @@ FIX: PHP8 warning if $conf->reception is checked the old fashion way (#29697)
|
|||
FIX: PHP 8 warning on output of successful cronjob (#29922)
|
||||
FIX: PHP exception on getSpecialCode (#29646)
|
||||
FIX: php warning if cookie doesn’t exist (#29723)
|
||||
FIX: pos: invoice date incorrectly set because of timezome mismatches (reverts #36e91da) (#30184)
|
||||
FIX: pos: invoice date incorrectly set because of timezone mismatches (reverts #36e91da) (#30184)
|
||||
FIX: public project form return an error if SOCIETE_EMAIL_UNIQUE (#29942)
|
||||
FIX: REPLENISH MANY FOURN WHEN ORDER ALREADY CREATE (#29710)
|
||||
FIX: Supplier Order search on date valid (#30448)
|
||||
|
|
@ -1967,7 +1967,7 @@ FIX: navigation after filter in subaccount
|
|||
FIX: notification: error 500 in fixed emails due to a bad copy/paste (#29580)
|
||||
FIX: notification module: for supplier orders (any of the 3 triggers), user can choose an e-mail template in conf, but the conf is not used when sending the notification (#28216)
|
||||
FIX: not redirtect when error occurs on updating card (#29388)
|
||||
FIX: Not trancate the multicurrency rate shown on cards (even if the global MAIN_MAX_DECIMALS_SHOWN is set to 0) (#28211)
|
||||
FIX: Not truncate the multicurrency rate shown on cards (even if the global MAIN_MAX_DECIMALS_SHOWN is set to 0) (#28211)
|
||||
FIX: Oauth login
|
||||
FIX: Option MAIN_DOC_USE_TIMING can be a string with date format
|
||||
FIX: Payment on customer invoice - Remove accountid in url if empty for apply default value (#28156)
|
||||
|
|
@ -2070,7 +2070,7 @@ FIX: Fix create shipping with product who have negative stocks on warehouse but
|
|||
FIX: migration missing 2 columns in llx_resource and 1 in llx_user
|
||||
FIX: missing trans
|
||||
FIX: notification module: for supplier orders (any of the 3 triggers), user can choose an e-mail template in conf, but the conf is not used when sending the notification (#28216)
|
||||
FIX: Not trancate the multicurrency rate shown on cards (even if the global MAIN_MAX_DECIMALS_SHOWN is set to 0) (#28211)
|
||||
FIX: Not truncate the multicurrency rate shown on cards (even if the global MAIN_MAX_DECIMALS_SHOWN is set to 0) (#28211)
|
||||
FIX: Option MAIN_DOC_USE_TIMING can be a string with date format
|
||||
FIX: Payment on customer invoice - Remove accountid in url if empty for apply default value (#28156)
|
||||
FIX: Pb in redirect of a website page in USEDOLIBARRSERVER mode
|
||||
|
|
@ -2630,7 +2630,7 @@ FIX: notification: error 500 in fixed emails due to a bad copy/paste (#29580)
|
|||
FIX: notification module: for supplier orders (any of the 3 triggers), user can choose an e-mail template in conf, but the conf is not used when sending the notification (#28216)
|
||||
FIX: Not qualified lines for reception (#29473)
|
||||
FIX: not redirect when error occurs on updating card (#29388)
|
||||
FIX: Not trancate the multicurrency rate shown on cards (even if the global MAIN_MAX_DECIMALS_SHOWN is set to 0) (#28211)
|
||||
FIX: Not truncate the multicurrency rate shown on cards (even if the global MAIN_MAX_DECIMALS_SHOWN is set to 0) (#28211)
|
||||
FIX: on change ref for bank account attachment are lost (#30529)
|
||||
FIX: Option MAIN_DOC_USE_TIMING can be a string with date format
|
||||
FIX: orders to bill menu (#30179)
|
||||
|
|
@ -2642,7 +2642,7 @@ FIX: php8: Fatal when empty $tmpvat is an empty string (no silent conversion to
|
|||
FIX: PHP 8 warning on output of successful cronjob (#29922)
|
||||
FIX: PHP exception on getSpecialCode (#29646)
|
||||
FIX: php warning global conf (#29478)
|
||||
FIX: pos: invoice date incorrectly set because of timezome mismatches (reverts #36e91da) (#30184)
|
||||
FIX: pos: invoice date incorrectly set because of timezone mismatches (reverts #36e91da) (#30184)
|
||||
FIX: public project form return an error if SOCIETE_EMAIL_UNIQUE (#29942)
|
||||
FIX: purge files cron: php warnings when rest module enabled (#30919)
|
||||
FIX: PUT /thirdparties/{id} and PUT /contacts/{id} should throw exception if update returns < 0 (#29596)
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
jQuery("#mouvement option[value=1]").attr("selected","selected").trigger("change");
|
||||
jQuery("#mouvement").trigger("change");
|
||||
$action = 'transfert';
|
||||
$currentpos = ftell($infp);
|
||||
$date_liv = dol_mktime(GETPOSTINT('rehour'), GETPOSTINT('remin'), GETPOSTINT('resec'), GETPOSTINT("remonth"), GETPOSTINT("reday"), GETPOSTINT("reyear"));
|
||||
$newfiletmp = preg_replace('/\.od(s|t)/i', '', $newfile);
|
||||
$newfiletmp = preg_replace('/\.od[ts]/i', '', $newfile);
|
||||
|
|
@ -29,6 +30,7 @@
|
|||
if (jQuery("#mouvement").val() == \'0\') jQuery("#unitprice").removeAttr("disabled");
|
||||
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=transfert&token='.newToken().'">'.$langs->trans("TransferStock").'</a>';
|
||||
$action = 'transfert';
|
||||
$currentpos = ftell($infp);
|
||||
$date_com = dol_mktime(GETPOSTINT('rehour'), GETPOSTINT('remin'), GETPOSTINT('resec'), GETPOSTINT('remonth'), GETPOSTINT('reday'), GETPOSTINT('reyear'));
|
||||
$date_next_execution = dol_mktime($rehour, $remin, 0, $remonth, $reday, $reyear);
|
||||
$datesubscription = dol_mktime(12, 0, 0, GETPOSTINT("remonth"), GETPOSTINT("reday"), GETPOSTINT("reyear"));
|
||||
|
|
@ -87,6 +89,7 @@
|
|||
$datepaye = dol_mktime(GETPOSTINT("rehour"), GETPOSTINT("remin"), GETPOSTINT("resec"), GETPOSTINT("remonth"), GETPOSTINT("reday"), GETPOSTINT("reyear"), 'tzuserrel');
|
||||
$ensemblereponses = $obj->reponses;
|
||||
$head[$h][1] = $langs->trans('Referers');
|
||||
$infp = fopen($infilename, "rt");
|
||||
$inj += preg_match('/on(dblclick|drag|drop|durationchange|emptied|end|ended|error|focus|focusin|focusout|formdata|gotpointercapture|hashchange|input|invalid)[a-z]*\s*=/i', $val);
|
||||
$opensurveysondage->mail_admin = $_SESSION['adresse'];
|
||||
$pdf->SetXY($savx, $savy);
|
||||
|
|
@ -108,9 +111,12 @@
|
|||
// Ligne de la periode d'analyse du rapport
|
||||
// ceci afin d'etre compatible avec les cas ou la periode n'etait pas obligatoire
|
||||
<strong>TaskItem(<em>pID, pName, pStart, pEnd, pColor, pLink, pMile, pRes, pComp, pGroup, pParent, pOpen, pDepend, pCaption, pNotes, pGantt</em>)</strong></p>
|
||||
Issue summary: If a victim had access to a spoofed version of ckeditor.com via HTTP (e.g. due to DNS spoofing, using a hacked public network or mailicious hotspot), then when using a link to the ckeditor.com website it was possible for the attacker to change the current URL of the opening page, even if the opening page was protected with SSL.
|
||||
fclose($infp);
|
||||
if ($action == "transfert") {
|
||||
if (GETPOST('reday')) {
|
||||
if (GETPOSTINT("reyear") && GETPOSTINT("remonth") && GETPOSTINT("reday")) {
|
||||
if (empty($infp)) {
|
||||
print '<option value="1"'.(GETPOST('mouvement') ? ' selected="selected"' : '').'>'.$langs->trans("Delete").'</option>';
|
||||
print '<select name="mouvement" id="mouvement" class="minwidth100 valignmiddle">';
|
||||
print '<td class="left" width="25%">'.$langs->trans("Referers").'</td>';
|
||||
|
|
@ -127,10 +133,16 @@
|
|||
public $childs = array();
|
||||
public $periode;
|
||||
unset($_SESSION["adresse"]);
|
||||
while ($instr = fgets($infp)) {
|
||||
- creat,unitl,alltime,datas,referers
|
||||
- informations,medias,uptodate,reenable,crypted,developpers
|
||||
- ned
|
||||
claim (excluding declatory judgment actions) against Initial Developer
|
||||
waitFor: (name: string, state?: WaitState) => Promise<void>;
|
||||
Corrected closure based memeory leak - there may be others?
|
||||
Corrected table layout and tweaked display for more consisent presentation. Nice catch from Jonathan Pasquier.
|
||||
* Copyright (C) 2019 Cedric Ancelin <icedo.anc@gmail.com>
|
||||
* This solution does not work in IE, Edge and Safari due to upstream isues:
|
||||
$permissiontoadd = $user->hasRight('stock', 'mouvement', 'creer');
|
||||
$permissiontodelete = $user->hasRight('stock', 'mouvement', 'creer'); // There is no deletion permission for stock movement as we should never delete
|
||||
$permissiontoread = $user->hasRight('stock', 'mouvement', 'lire');
|
||||
|
|
@ -148,10 +160,15 @@ $usercandelete = (($user->hasRight('stock', 'mouvement', 'supprimer')));
|
|||
$usercanread = $user->hasRight('stock', 'mouvement', 'lire');
|
||||
$usercanread = (($user->hasRight('stock', 'mouvement', 'lire')));
|
||||
$usercanupdatestock = $user->hasRight('stock', 'mouvement', 'creer');
|
||||
* Completely reworked themeing via CSS sprites, resulting in only two files per theme
|
||||
* Fixed XSS vulnerability in the HTML parser reported by [Maco Cortes](https://www.facebook.com/Maaacoooo).
|
||||
* The private array ->status_short, ->statuts and ->status_long are now array ->labelStatusShort and ->labelStatus everywhere.
|
||||
- Fix: [ bug #485 ] Configurated amount for public auto-subscription form is not taken into account
|
||||
- New: Add proposals into referer page of thirdparty.
|
||||
.treeview li.collapsable, .treeview li.expandable { background-position: 0 -176px; }
|
||||
Lightweight and flexible transformation of an unordered list into an expandable and collapsable tree, great for unobtrusive navigation enhancements. Supports both location and cookie based persistence.
|
||||
NEW: ModuleBuilder: Checkin comments begin and end before each actions
|
||||
Takes an unordered list and makes all branches collapsable. The "treeview" class is added if not already present. To hide branches on first display, mark their li elements with the class "closed". If the "collapsed" option is used, mark initially open branches with class "open".
|
||||
Vous pouvez voir la progression du ticket en cliquant sur le lien
|
||||
for /F "tokens=2 delims=," %%i in ('tasklist /FI "IMAGENAME eq php.exe" /FO CSV /NH') do (
|
||||
function checkES($IentOfi, $InumCta)
|
||||
|
|
|
|||
|
|
@ -701,7 +701,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
|
||||
class SpeechPipeline {
|
||||
static task = 'automatic-speech-recognition';
|
||||
static model = 'Xenova/whisper-small.en';
|
||||
static model = 'Xenova/whisper-small.en';
|
||||
static instance = null;
|
||||
|
||||
static async getInstance(progress_callback = null) {
|
||||
|
|
|
|||
|
|
@ -1123,7 +1123,7 @@ class Form
|
|||
/**
|
||||
* Return a select list of country phone calling codes
|
||||
*
|
||||
* @param string $selected Pre-selected phone code value (e.g. "+33")
|
||||
* @param string $selected Preselected phone code value (e.g. "+33")
|
||||
* @param string $htmlname Name of HTML select element
|
||||
* @param string $morecss More CSS classes
|
||||
* @param int $showempty Show empty option (1) or not (0)
|
||||
|
|
|
|||
|
|
@ -61,12 +61,12 @@ class CdavLib
|
|||
/**
|
||||
* Base sql request for calendar events
|
||||
*
|
||||
* @param int $calid Calendar id
|
||||
* @param int $calendarId Calendar id
|
||||
* @param int|bool $oid Oid
|
||||
* @param int|bool $ouri Ouri
|
||||
* @return string
|
||||
*/
|
||||
public function getSqlCalEvents($calid, $oid = false, $ouri = false)
|
||||
public function getSqlCalEvents($calendarId, $oid = false, $ouri = false)
|
||||
{
|
||||
// TODO : replace GROUP_CONCAT by
|
||||
$sql = 'SELECT
|
||||
|
|
@ -94,7 +94,7 @@ class CdavLib
|
|||
FROM '.MAIN_DB_PREFIX.'actioncomm AS a';
|
||||
$sql .= " LEFT JOIN '.MAIN_DB_PREFIX.'c_country as co ON co.rowid = sp.fk_pays
|
||||
LEFT JOIN '.MAIN_DB_PREFIX.'c_country as cos ON cos.rowid = s.fk_pays
|
||||
WHERE a.id IN (SELECT ar.fk_actioncomm FROM '.MAIN_DB_PREFIX.'actioncomm_resources ar WHERE ar.element_type='user' AND ar.fk_element=".((int) $calid).")
|
||||
WHERE a.id IN (SELECT ar.fk_actioncomm FROM '.MAIN_DB_PREFIX.'actioncomm_resources ar WHERE ar.element_type='user' AND ar.fk_element=".((int) $calendarId).")
|
||||
AND a.code IN (SELECT cac.code FROM '.MAIN_DB_PREFIX.'c_actioncomm cac WHERE cac.type <> 'systemauto')
|
||||
AND a.entity IN (".getEntity('societe', 1).")";
|
||||
// TODO Restrict on external users
|
||||
|
|
@ -112,11 +112,11 @@ class CdavLib
|
|||
/**
|
||||
* Convert calendar row to VCalendar string
|
||||
*
|
||||
* @param int $calid Calendar id
|
||||
* @param int $calendarId Calendar id
|
||||
* @param Object $obj Object id
|
||||
* @return string
|
||||
*/
|
||||
public function toVCalendar($calid, $obj)
|
||||
public function toVCalendar($calendarId, $obj)
|
||||
{
|
||||
/*$categ = array();
|
||||
if($obj->soc_client)
|
||||
|
|
@ -169,7 +169,7 @@ class CdavLib
|
|||
$caldata .= "LAST-MODIFIED:".gmdate('Ymd\THis', strtotime($obj->lastupd))."Z\n";
|
||||
$caldata .= "DTSTAMP:".gmdate('Ymd\THis', strtotime($obj->lastupd))."Z\n";
|
||||
if ($obj->sourceuid == '') {
|
||||
$caldata .= "UID:".$obj->id.'-ev-'.$calid.'-cal-'.constant('CDAV_URI_KEY')."\n";
|
||||
$caldata .= "UID:".$obj->id.'-ev-'.$calendarId.'-cal-'.constant('CDAV_URI_KEY')."\n";
|
||||
} else {
|
||||
$caldata .= "UID:".$obj->sourceuid."\n";
|
||||
}
|
||||
|
|
@ -251,24 +251,24 @@ class CdavLib
|
|||
*/
|
||||
public function getFullCalendarObjects($calendarId, $bCalendarData)
|
||||
{
|
||||
$calid = (int) $calendarId;
|
||||
$calendarId = (int) $calendarId;
|
||||
$calevents = array();
|
||||
|
||||
if (!$this->user->rights->agenda->myactions->read) {
|
||||
return $calevents;
|
||||
}
|
||||
|
||||
if ($calid != $this->user->id && (!isset($this->user->rights->agenda->allactions->read) || !$this->user->rights->agenda->allactions->read)) {
|
||||
if ($calendarId != $this->user->id && (!isset($this->user->rights->agenda->allactions->read) || !$this->user->rights->agenda->allactions->read)) {
|
||||
return $calevents;
|
||||
}
|
||||
|
||||
$sql = $this->getSqlCalEvents($calid);
|
||||
$sql = $this->getSqlCalEvents($calendarId);
|
||||
|
||||
$result = $this->db->query($sql);
|
||||
|
||||
if ($result) {
|
||||
while ($obj = $this->db->fetch_object($result)) {
|
||||
$calendardata = $this->toVCalendar($calid, $obj);
|
||||
$calendardata = $this->toVCalendar($calendarId, $obj);
|
||||
|
||||
if ($bCalendarData) {
|
||||
$calevents[] = array(
|
||||
|
|
|
|||
|
|
@ -20,4 +20,4 @@ ALTER TABLE llx_product_warehouse_properties ADD INDEX idx_product_warehouse_pro
|
|||
ALTER TABLE llx_product_warehouse_properties ADD INDEX idx_product_warehouse_properties_fk_entrepot (fk_entrepot);
|
||||
|
||||
ALTER TABLE llx_product_warehouse_properties ADD CONSTRAINT fk_product_warehouse_properties_fk_product FOREIGN KEY (fk_product) REFERENCES llx_product (rowid);
|
||||
ALTER TABLE llx_product_warehouse_properties ADD CONSTRAINT fk_product_warehouse_properties_fk_entrepot FOREIGN KEY (fk_entrepot) REFERENCES llx_entrepot (rowid);
|
||||
ALTER TABLE llx_product_warehouse_properties ADD CONSTRAINT fk_product_warehouse_properties_fk_entrepot FOREIGN KEY (fk_entrepot) REFERENCES llx_entrepot (rowid);
|
||||
|
|
|
|||
Loading…
Reference in a new issue