[Fusionforge-commits] FusionForge branch master updated. v6.0.5-1411-g318d005
Marc-Etienne VARGENAU
vargenau at libremir.placard.fr.eu.org
Tue Jan 31 14:17:55 CET 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 318d005ffe7486efa2770f654925788b0395586a (commit)
from 2c943c81213993ce1a082b453be454916c8d6296 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=318d005ffe7486efa2770f654925788b0395586a
commit 318d005ffe7486efa2770f654925788b0395586a
Author: Marc-Etienne Vargenau <marc-etienne.vargenau at nokia.com>
Date: Tue Jan 31 14:17:13 2017 +0100
PHP5.3 compatibility - SORT_FLAG_CASE only since PHP5.4
diff --git a/src/common/tracker/views/form-workflow_required_fields.php b/src/common/tracker/views/form-workflow_required_fields.php
index 4421eb9..5024d41 100644
--- a/src/common/tracker/views/form-workflow_required_fields.php
+++ b/src/common/tracker/views/form-workflow_required_fields.php
@@ -76,7 +76,9 @@ $extra_fields = $ath->getExtraFields() ;
foreach ($extra_fields as $key => $row) {
$extra_fields_names[$key] = $row['field_name'];
}
-array_multisort($extra_fields_names, SORT_ASC, SORT_LOCALE_STRING | SORT_FLAG_CASE, $extra_fields);
+// PHP5.3 compatibility - SORT_FLAG_CASE only since PHP5.4
+$sort_flags = defined('SORT_FLAG_CASE')? SORT_LOCALE_STRING | SORT_FLAG_CASE : SORT_LOCALE_STRING;
+array_multisort($extra_fields_names, SORT_ASC, $sort_flags, $extra_fields);
foreach ($extra_fields as $field) {
if ($field['field_type'] != ARTIFACT_EXTRAFIELDTYPE_STATUS) {
-----------------------------------------------------------------------
Summary of changes:
src/common/tracker/views/form-workflow_required_fields.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
hooks/post-receive
--
FusionForge
More information about the Fusionforge-commits
mailing list