Skip to content
Code-Schnipsel Gruppen Projekte
Commit a269d736 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Merge branch 'next-3.x' into 'main'

fix: correctly check if translation of unit exists

See merge request !152
Übergeordnete 1f3fd46a 12ca5f69
No related branches found
Tags 3.7.18
2 Merge Requests!152fix: correctly check if translation of unit exists,!140Update 'next-4.x' with latest changes from 'main'
Pipeline #12287 mit Warnungen bestanden mit Phase
in 1 Minute und 3 Sekunden
......@@ -22,7 +22,6 @@
"php": "^8",
"quiqqer/core": "^2",
"quiqqer/utils": "^2",
"quiqqer/watcher": "^2",
"quiqqer/translator": "^2",
"quiqqer/employee": "^2",
"quiqqer/customer": "^2",
......@@ -32,6 +31,9 @@
"quiqqer/erp-accounting-templates": "^2",
"quiqqer/areas": "^2"
},
"suggest": {
"quiqqer/watcher": "QUIQQER Watcher module (kind of logger)"
},
"autoload": {
"psr-4": {
"QUI\\ERP\\": "src/QUI/ERP"
......
......@@ -567,7 +567,7 @@ public function getQuantityUnit(QUI\Locale $Locale = null): string
if (isset($options['entries'][$unitId])) {
$titles = $options['entries'][$unitId]['title'];
if ($titles[$current]) {
if (!empty($titles[$current])) {
return $titles[$current];
}
}
......
......@@ -201,7 +201,7 @@ public static function getTimestampFormat(bool|string $lang = false): int|string
return self::$timestampFormat[$lang];
}
self::$timestampFormat[$lang] = '%c';
self::$timestampFormat[$lang] = 'MMM dd, yyyy, hh:mm:ss';
try {
$Package = QUI::getPackage('quiqqer/erp');
......@@ -237,7 +237,7 @@ public static function getDateFormat(bool|string $lang = false): string
return self::$dateFormat[$lang];
}
self::$dateFormat[$lang] = '%D';
self::$dateFormat[$lang] = 'MMM dd, yyyy';
try {
$Package = QUI::getPackage('quiqqer/erp');
......@@ -249,6 +249,7 @@ public static function getDateFormat(bool|string $lang = false): string
}
$value = $Config->get('dateFormat', $lang);
$value = trim($value);
if (!empty($value)) {
self::$dateFormat[$lang] = $value;
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren