[open-ils-commits] [GIT] Evergreen ILS branch rel_3_1 updated. 697e2419a4f0599589e8a444a95871328671398a
Evergreen Git
git at git.evergreen-ils.org
Wed Aug 14 09:15:30 EDT 2019
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 "Evergreen ILS".
The branch, rel_3_1 has been updated
via 697e2419a4f0599589e8a444a95871328671398a (commit)
from c071d06eb6b4c5332b386d05b16e41dcfc99aa91 (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 -----------------------------------------------------------------
commit 697e2419a4f0599589e8a444a95871328671398a
Author: James Fournie <jamesrf at users.noreply.github.com>
Date: Thu May 2 09:53:35 2019 -0700
LP1751800 - fix fields fields reversing
The pop() here will remove the last item in the array, only to add it
later with a push() a few lines later. Instead use a shift() to
preserve the order.
Signed-off-by: James Fournie <james.fournie at gmail.com>
Signed-off-by: Remington Steed <rjs7 at calvin.edu>
Signed-off-by: Dan Wells <dbw2 at calvin.edu>
diff --git a/Open-ILS/web/js/ui/default/staff/reporter/services/template.js b/Open-ILS/web/js/ui/default/staff/reporter/services/template.js
index 043dd47638..39086549ec 100644
--- a/Open-ILS/web/js/ui/default/staff/reporter/services/template.js
+++ b/Open-ILS/web/js/ui/default/staff/reporter/services/template.js
@@ -406,7 +406,7 @@ function($uibModal , $q , egCore , egConfirmDialog , egAlertDialog) {
service.removeField = function (type, field) {
var new_list = [];
while (service[type].length) {
- var f = service[type].pop();
+ var f = service[type].shift();
if (field.index != f.index ) new_list.push(f);
}
new_list.forEach(function(f) {
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/web/js/ui/default/staff/reporter/services/template.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list