]> git.uio.no Git - usit-rt.git/blobdiff - share/html/REST/1.0/Forms/group/default
Upgrade 4.0.17 clean.
[usit-rt.git] / share / html / REST / 1.0 / Forms / group / default
index 8867bf938231c3a672866e9c1723c7d19a2eef4b..8a7a5244e9c94386740fc305cce0b57e82af5c3a 100644 (file)
@@ -156,7 +156,7 @@ if (%data == 0) {
 }
 else {
     my ($get, $set, $key, $val, $n, $s);
-
+    my $updated;
     foreach $key (keys %data) {
         $val = $data{$key};
         $key = lc $key;
@@ -192,9 +192,12 @@ else {
                 $k = $changes;
             }
         }
+        else {
+            $updated ||= 1;
+        }
     }
 
-    push(@comments, "# Group $id updated.") unless $n == 0;
+    push(@comments, "# Group $id updated.") if $updated;
 }
 
 DONE: